Highlight fake “grandparent” item in menu when on pages in separate custom menu?
-
Hi,
I have a main top menu, comprised of a custom link (non-clickable) at the top, and dropdown page items. Each page in the dropdown has a separate custom menu (in a widget).
So:
TOP MENU ITEM: CUSTOM LINK
– ITEM ONE 1st PAGE
– ITEM TWO 1st PAGE
– ETC.Then on page one, there’s custom menu 1 with:
ITEM ONE 1st PAGE | 2nd PAGE | 3rd PAGE | 4th PAGE.On page two, custom menu 2 with:
ITEM TWO 1st PAGE | 2nd PAGE | 3rd PAGE | 4th PAGE.When I’m on ITEM ONE 1st PAGE, it is highlighted/active in the submenu, and the TOP MENU ITEM is also active, since the page appears in both menus. All well and good.
My question is: is it possible to keep the TOP MENU ITEM highlighted/active when I’m on the 2nd and 3rd pages, which only appear in the submenu and not in the main menu?
Within PAGES in the admin, I’ve made the 1st page the parent of the 2nd and 3rd pages. The 1st pages are all children of a blank parent page I’m not using anywhere (nofollow/noindex) just to keep them organized. Is there any way to call to the page rather than the menu structure?
Thanks for your help!
- The topic ‘Highlight fake “grandparent” item in menu when on pages in separate custom menu?’ is closed to new replies.