Home › Forums › CSS › Keep Parent Item Active when Child Element is Current Page – CSS/WordPress › Re: Keep Parent Item Active when Child Element is Current Page – CSS/WordPress
Wordpress adds the super helpful selectors that do that for you. Try doing this:
// parent styling here
// child styling here
This should work for any page that you’re on.
Edit: After looking at your css, it looks like you’re actually already using those selectors, however you’re not coloring their backgrounds, only the text. So if you use those along with background it might help out?