Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Theme inheritance with Quark Theme

first-time theme

Started by David Coate 7 years ago · 0 replies · 737 views
7 years ago

Absolute Grav, css, php, etc. newbie here. I have followed the instructions at https://learn.getgrav.org/16/themes/customization#theme-inheritance. I created a myquark theme, copied over from partials footer.html.twig, made some modifications to it and had success with the modified footer displaying. I continued the instructions on creating a _custom.css file and added a change to the link color in that, compiled the new theme, checked myquark/css-compiled/theme.css to confirm the changes were made. I reset the cache on Grav and my browser. Upon inspecting the webpage in Safari, I see "/user/themes/quark/css-compiled/theme.min.css" is still served and the link color colors have not changed. If i add a myquark/css/custom.css file, then it is served after the quark/css-compiled/theme.min.css but that adds another file to download. My question is..

  1. Should not Grav serve the file from myquark/css-compiled instead of quark/css-compiled or is the problem that the compiling instructions should include minifying the theme.scss file and then will Grav serve up myquark/css-compiled/theme.min.css instead of quark/css-compiled/theme.min.css.

Sorry of the length of post!

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 23 hours ago
1 35 10 hours ago
Themes & Styling · by stuart young, 1 month ago
3 480 1 month ago
Themes & Styling · by Sebadamus, 2 months ago
5 481 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 460 2 months ago
Themes & Styling · by Justin Young, 2 months ago
1 491 2 months ago