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

Change Color in Antimatter header Image

Started by codiergott 8 years ago · 2 replies · 1114 views
8 years ago

Hello,
I'm new to GravCMS and have a problem. How can I change or remove blue in the header image?

8 years ago

Hi @codiergott , to remove (or change) the blue tint of the blog header image you will need to edit the file blog.html.twig in the Antimatter theme folder templates/blog.html.twig. Look for this line:

TWIG
{% set blog_image = page.media.images|first.grayscale().contrast(20).brightness(-100).colorize(-35,81,122) %}

To remove the coloring, you can change the above line to:

TWIG
{% set blog_image = page.media.images | first %}

Please note that this change might be lost when the theme is updated, so it is best to create an inherited theme and then make all your changes there. You can learn how to do that at https://learn.getgrav.org/themes/customization#theme-inheritance

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 197 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 127 3 months ago