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 · 778 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 319 3 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago