Main navigation roll-over effect not working
-
I’m having an issue with the main nav for this site that’s under construction http://shirleystreasuresllc.com/ . When I click a link in the main nav, the roll over effect happens on the nav item to the left. I’m a noob and not sure what’s happening but I have seen this issue posted before with no resolution. Can anyone assist?
-
Hey there vsc247,
How are you doing today?
I’ve checked your site and I can’t see hover effect on your navigation. You should be able to add one if you want by adding the following CSS in Appearance -> Onetone Options -> General Options -> Custom CSS:
.home-navigation > ul > li > a > span:hover { color: #000; }Replace color hex value to display another color. You can use sites similar to this one to get hex value for the color of your choice: http://www.color-hex.com/
Hope this helps π
Cheers,
BojanThanks Bojan but I do have a question. I’ve been looking at the site in Firefox, Chrome, IE and Safari on multiple computers and I am seeing a hover effect even on computers not within my home. What browser are you using? Could it be that this is hardcoded in some way? The only thing that I’m currently seeing in the Custom CSS area is this:
body{margin:0px;}Also, to be more clear, once I click a link on my test site, the link turns a different color. On my live site when I click on a link, the link on the left is shown in a different color in the main nav, not the link that I’ve clicked on. I hope this helps more and sorry for the incorrect evaluation.
Hey again vsc247,
I was checking your site in Chrome and I still can’t see any hover or current color there. However, once I switched to FF I was able to see this.
I’m not sure why this is happening since current and hover class is being added by JS when you scroll down to area that is linked in the menu, the problem can be with the JS itself or with that big header you’re having.
What you can do is simply remove that color by adding the following CSS:
.top-nav .onetone-menuitem.current a span { color: #ddd; }This should remove current color from menu items.
Hope this helps π
Cheers,
BojanOk that works, thanks! Now if I choose to add the hover effect I would just place the code referenced above to look like this with the color of my choice correct?
.top-nav .onetone-menuitem.current a span { color: #ddd; } .home-navigation > ul > li > a > span:hover { color: #000; }I’m new at this and it’s a work in progress.
ThanksHey again vsc247,
Glad to hear the code is working π
As for hover, yes I’m pretty sure that would work. Please keep it added if it doesn’t so I can take a look.
Best regards,
BojanSo this is what I tried but it does not appear to be working:
.top-nav .onetone-menuitem.current a span { color: #ddd; } .home-navigation > ul > li > a > span:hover { color: #e09a3b; }I did this on my local test site.
vscAlso, I’ve tried it on the live site as well.
Hey again,
Try replacing the above code for hover with this one:
.home-navigation ul .onetone-menuitem.hover a span { color: #e09a3b; }This should do the trick π
Cheers,
BojanSuccess! Thank you very much for all of your assistance with this. This is the final code solution
.top-nav .onetone-menuitem.current a span { color: #ddd; } .home-navigation ul .onetone-menuitem.hover a span { color: #e09a3b; }Glad I could help π
Cheers,
BojanThanks!
The topic ‘Main navigation roll-over effect not working’ is closed to new replies.
