Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Logo & CSS Images Not Showing in Inherited Theme (delivernext, Grav 1.8 beta4)

Solved by Pedro M View solution

Started by 01K 1 year ago · 3 replies · 68 views
1 year ago

Using Grav 1.8 beta4 with delivernext theme (v1.1.1). Created inherited theme my-delivery-override using Grav’s built-in script (bin/plugin devtools new-theme) to customize templates but keep logo and add custom CSS, images and other settings which were set in the theme.

Setup:

  • my-delivery-override: Inheritance via user/themes/my-delivery-override/my-delivery-override.yaml:
    streams:
    schemes:
    theme:
    type: ReadOnlyStream
    prefixes:
    '':

    • 'user://themes/my-delivery-override'
    • 'user://themes/delivernext'
  • Custom CSS: user/themes/my-delivery-override/assets/css/custom.css with background: url('/images/languages/code.png') (image in user/images/languages/).

Issues:

  1. Logo: Disappears in my-delivery-override. Probably other assets too, but have not tested more. Copied logo settings to user/config/themes/my-delivery-override.yaml and image to user/themes/my-delivery-override/images/, no luck.
  2. CSS Images: Background images don’t load. Firefox console errors:
    Security Error: Content at https://grav-2025.test/ may not load moz-extension://b26acb47-90de-481e-89f2-c9dda63befd7/images/languages/code.png
    while this does work in old Grav 1.7 overridden theme

Tried:

  • Copied configs, blueprints, images.
  • Cleared cache (bin/grav cache).

Questions:

  • Why doesn’t my-delivery-override inherit logo settings? Or it relates to Grav itself?
  • How to fix it properly?
  • Can't remember exactly, but maybe, a few years ago, I had the same problem with other templates...

Or is this a Grav 1.8 beta4 bug? Help appreciated!

1 year ago

Hello,
done 🙂
Issue copied

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago