Hi,
I am trying to change main navigation text and hover colors for separate items but so far nothing worked. Could you provide a CSS for that? Thanks!
How to change main navigation text and hover colors for separate items?
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Mindaugas
Are you able to use your browser’s developer tool to inspect the page source? Here is how:
https://siteorigin.com/basics/modifying-theme-design-with-custom-css/
Insert the following under Appearance > Custom CSS:
Edit as required.
If you inspect the menu source you’ll see the list item class I’m targeting for each item.
That worked perfect. Thanks!
What about if I want to add a background image to one of the menu buttons?
For menu icons you can use our built in theme feature or the following plugin that has several icon libraries:
https://wordpress.org/plugins/menu-icons/
For a background image, let me know which menu item you want that on and we’ll try help out.
If you take a look at this thread here:
Thread: Highlight Single Menu Item
I’ve applied a different background color and hover color to a single menu item. I did that by inspecting the page source and finding the class of the list item (li) of the menu item that I wanted to target. It would be exactly the same except we’d add in a background image property:
So you’d need to replace 358 with the menu item class number and replace http://imageurl.com with your image url and replace my background and text colors with yours.
I want to change the background of this item: .main-navigation ul li.menu-item-215 a. Thanks
That’ll look something like this:
To extend this conversation further, however late to the game…can this CSS be applied to one specific page? I tried utilizing the above CSS with each menu item preceded by .page-id-xx
Example page:
http://imsone.com/gradrun/kids/
I want to alter the hover color and secondary (dropdown) menu color background and text to match the color theme of main menu bar color on just this page.
You can see the homepage and the rest of the site is has a different color theme –
http://imsone.com/gradrun/
Thanks!
Definitely. Everything will be prefixed with the page body class. In the case of your example it would be:
It looks like you’ve made good progress. Let me know where you stand now and we’ll take it from there :)