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

Can't make custom.css do its job

first-time

Started by dam 8 years ago · 1 replies · 1130 views
8 years ago

Hi there
Get Grav a couple of days
working with win10 , xampp server

I ve create some pages with a quark theme child : mytheme
I hardcoded into the base.html.twig to add my tittle and logo.html.twig to replace the grav logo.
But then i tried to put some personal css into mytheme/css/custom.css nothing happens :-(

Any idea ?

8 years ago

Did you add your custom.css like this:
Add:
{% do assets.addCss('theme://css/custom.css', 98) %}
To (depending on your theme name):
templates/partials/base.html.twig
You might have to add it to head or header.html.twig
As seen here under step 5:
https://learn.getgrav.org/themes/theme-tutorial

add it after style.css.

For more on overriding plugin css: /forum/general/override-plugin-css-t9132

last edited 10/25/18 by Roeland

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 3 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago