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.

Themes & Styling

Can't make custom.css do its job

first-time

Started by dam 8 years ago · 1 replies · 996 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 Pedro M, 2 months ago
4 196 2 months ago
Themes & Styling · by Ian, 2 months ago
3 92 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 454 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 47 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 126 3 months ago