Jump to content
Sign in to follow this  
ringo1

Selected menu item stays highlighted on sub-page?

Recommended Posts

ringo1

Hey guys, I've searched around trying to solve this and see it's maybe a wordpress issue but I was wondering if anyone here knows how to resolve it? I have a menu item that has a background color that changes to let you know you're on that page. I have sub-pages or child pages built off the parent page but the navigation will not highlight on these pages. Any thoughts on this appreciated. I am stumped... thanks!

Share this post


Link to post
Share on other sites
catrina

I think you'll have to change the "active link" properties for subpages/child pages using CSS. Can you post a link to your site, please?


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
kastelic

Try this CSS:

	.current_page_ancestor, .current_page_parent {
	background: blue;
	}
	

Share this post


Link to post
Share on other sites
ringo1

Kastelic, that worked like a charm! Didn't work in custom code but did in the style.css in the base. That was really bugging me. Thanks a lot, appreciate it.

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  

×