sub-menu color (is original post)

November 2012 WordPress Theme
GK User
Mon Oct 20, 2014 7:23 pm
Hi,

I have a problem with sub-menu coloring. I managed to color everything I need except one - when i hover over a menu item that has sub-menu items in it, everything is ok, but when I hover over a sub-menu item, the main menu item (parent I guess) changes back to orange.

I saw a couple of similar posts and they all recomend using selectors from style#.css. The problem is that I am using style1.css (empty) and wouldn't like to change it 'cause some styles in it work great with my site. I just need the selector (Chrome's inspect element doesn't help with this one).

Thanks
User avatar
Senior Boarder

GK User
Tue Oct 21, 2014 7:19 am
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

GK User
Tue Oct 21, 2014 11:01 am
The link is http://moto-limit.hr/

and the menu item in question is "USLUGE".
User avatar
Senior Boarder

GK User
Tue Oct 21, 2014 10:16 pm
Add the following code into the theme’s css/override.css file (make sure to enable the “Use the override.css file” option in Template options > Advanced in the WordPress backend)

Code: Select all
#main-menu > li:hover > a,
#main-menu > li.current-menu-parent > a  {
   background: #ed1c24;
}
User avatar
Moderator

GK User
Wed Oct 22, 2014 12:43 am
Works great tnx!
User avatar
Senior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.