Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Making really simple layout changes

Started by Muut Archive 10 years ago · 2 replies · 466 views
10 years ago

Hey folks! I just started using Grav today at Lunsford.ca and I just need to know how to change the name of the blog from "My Blog," and to change the font size and link colors (through CSS or SCSS) on the left side and in the body. Should be pretty simple right? Just don't want to have to read the entire documentation just to change some CSS and the blog title. Thanks for any help you can provide!

10 years ago

Sorry, I'm actually using the TwentyFifteen theme, but I guess it shouldnt be too different. Where can I find the code to edit in order to change the actual layout and not just each individual blog page?

10 years ago

The best way to edit a theme is to create a child theme

I see that specific theme does not use SCSS as it's migrated from the WP theme directly.

You'll need to alter partials/base.html.twig (https://github.com/getgrav/grav-theme-twentyfifteen/blob/develop/templates/partials/base.html.twig), add a new CSS file to be included, and add your own modifications to that file.

Of course if you prefer you can also setup SCSS and compile it to a CSS file.

I don't see any "My Blog" preference in the theme settings, so that could be picked up from your Grav or pages configuration. Usually what I do is search that string across the whole user/ folder, since it's all files.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago