Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Highlight top parent item for child archive page

$
0
0

Replies: 0

Hi there.
Plugin works fine if pages are really children of the top level page.
But I cannot highlight the top parent page if there’s not a real relationship.
Let’s say that I have a menu item called “News” and I have an archive page called “Press” that shows all the “press_post” elements (a custom post type, of course).

Once I click on Press, the top level page is no more highlighted! 🙁

I’m trying to figure out a solution overriding the Walker class of Max Mega Menu plugin, but I cannot find a way to write something like “if current page (Press) is shown inside a menu widget that is part of the top level item (News), then add a special class”.

Is that possible?
Thanks


Viewing all articles
Browse latest Browse all 59525

Trending Articles