Active menu state

Hello!

I have set some styling for when a menu item is active. E.g. a category. This works when I am on the direct child of that category, however once I go to sub-children it stops working.

I.e. if ‘book’ is the menu item.

On page ‘book > fiction’ the active state of ‘book’ is fine
But when I get to ‘book’ > ‘fiction’ > ‘romance’ it stops being active.

Thank you!
Alex

Hey Alex,

There should be an active state including the third level menu item in X. There might be some CSS code that is overriding it. There are several licenses in your account so I am not sure which site is in question.

Would you mind providing the URL of the site in question so that we can check?

Thank you.

Hi Jade - I’ve sent you a ‘secure note’. Hope you’ve received it. Alex

Hi Alex,

Foundation is indeed a sub-category of Students Professionals category, but your menu is a single menu item which has no sub-menu items. The current menu item, or current parent/ancestor item active status are determined by the structure of currently selected menu item versus the currently loaded page/category. And right now, there is no menu hierarchy to compare them, thus it doesn’t have active status since Wordpress can’t determine if the current page is a sub-menu item of a specific parent menu item.

The only workaround for that is custom development that we can’t provide here in the forum. But right now, Wordpress doesn’t apply active class status (parent-child, and there is no child menu item), so any CSS will not work either.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.