Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Can't make custom.css do its job

first-time

Started by dam 8 years ago · 1 replies · 1224 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 FrViPofm, 4 weeks ago
4 474 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 802 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 662 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 683 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 642 3 months ago