Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

16 theme customization - theme-inheritance

Solved by pamtbaau View solution

Started by thgr 6 years ago · 2 replies · 1611 views
6 years ago

Hello,

I try to understand something, as I try to create a inherited theme from quark.

16/themes/customization#theme-inheritance

1/ fresh install with quark (Install from ZIP package)

2/ Theme Inheritance : my-theme
(bin/plugin devtools new-theme)
inheritance

3/ user/config/system.yaml
pages:
theme: my-theme

Now my-theme is activated, but :

  • In the navigator, the width of the home page change it takes all the width of the screen now
  • If I add pages in a new folder, the dropdown menu appear but I can't be fly over

I believed, since I didn't change anything, everything would be like in Quark, but it's not true. Why my new theme is doing this ?
Did I miss something ?

Then, if I change back to quark:
3/ user/config/system.yaml
pages:
theme: quark

Everything is normal, but it's not my-theme.

Thank's again

6 years ago Solution

@thgr, It looks like you forgot step 3 from the docs in which you copy Quark's config from /themes/quark/quark.yaml to the top of /themes/my-theme/my-theme.yaml :

YAML
enabled: true
production-mode: true
grid-size: grid-lg
header-fixed: true
header-animated: true
header-dark: false
header-transparent: false
sticky-footer: true
blog-page: '/blog'
spectre:
  exp: false
  icons: false

streams:
 schemes:
   theme:
     type: ReadOnlyStream
     prefixes:
       '':
         - user/themes/my-theme
         - user/themes/quark
6 years ago

Yes, my-theme's configuration file my-theme.yaml was not good. Thanks.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 193 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 111 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 206 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 324 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1523 3 weeks ago