Jump to content
Sign in to follow this  
cshawsub

Nav menu hover color

Recommended Posts

cshawsub

I'm having difficulty determining how to keep the primary navmenu selected while scrolling down to the secondary navmenu. Here's the problem: www.crenshawsubway.org/home You can select "About" but once you scroll down to "Contact Us" About Us no longer shows as selected.

Share this post


Link to post
Share on other sites
cmunns

You have to use the .sfHover selector that is applied to the parent li by the superfish js file. If you share a link I can give you more detail

Share this post


Link to post
Share on other sites
cshawsub

I have no idea what that means. :) Also, which link would you like me to share and how?

Share this post


Link to post
Share on other sites
catrina

I think Adam was referring to this link you provided: www.crenshawsubway.org/home What he means is that you need to adjust your CSS so that the "About" link can do what you want it to do (in this case, stay highlighted). Does that make sense?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
cshawsub

Yes. Now how do I adjust my CSS and to what?

Share this post


Link to post
Share on other sites
Kate

Something like this should do it:

.sfHover a{background:#8BB026;color:#ffffff !important;}
	.sfHover li a{background-color:#ffffff !important;color:#000000 !important;}
	.sfHover li:hover a{background-color:#8BB026 !important;color:#ffffff !important;}
	

Place that in your Custom Code section...

Share this post


Link to post
Share on other sites
cshawsub

It didn't work. Here's what I have now: #primary-nav .texture { background-color: #ffffff; color: #ffffff!important; font-size: 15px; } #primary-nav .sf-menu li { background-color: #ffffff; font-size: 15px; } #primary-nav .sf-menu li a { color: #000000; font-size: 15px; } #primary-nav .sf-menu li a:hover { background-color: #8BB026; color: #ffffff; font-size: 15px; } #primary-nav .sf-menu .current_page_item a { background-color: #8BB026; color: #ffffff !important; font-size: 15px; }

Share this post


Link to post
Share on other sites
cmunns

body #primary-nav .sf-menu li.sfHover { background: #8BB026 }

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×