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

Change Antimatter open publishing menu link colors

first-time theme

Started by Rob 8 years ago · 1 replies · 676 views
8 years ago

Hi,
I'm quite new to Grav, but have reasonable experience with CSS/PHP. However, I can't seem to find where the colors for the menu items are defined within the .css or .twig files. Right now it's the standard blue, and when hovered a bit darker...
I hope someone can help me and point me in the right direction 🙂

ps. website is www.robberends.com

8 years ago

Hi @berendsrob, one way to do this is to use a custom.css in your theme's css folder, and use something like this to change the color there:

CSS
#header #navbar ul.navigation li a {
    color: #FFFFFF;
}

More info about custom CSS at:
https://learn.getgrav.org/themes/customization#custom-css

BTW, my favorite tool these day's to find out the needed CSS is the "Developer Tools" under the "View -> Developer" menu in Google Chrome (which likely you already know about but just in case🙂)

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 232 2 months ago
Themes & Styling · by Ian, 2 months ago
3 120 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 485 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 74 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 153 3 months ago