Sub menu to remain open
-
Hello,
Any help would be great.
I would like the sub menu to remain collasped and the current navigation item to be highlighted when clicking it through to the next page. The sub menu should remain collasped when on the new page travelling from the previous page.
Is there a java override for this in mega menu?
Thank you
-
Hi limtu,
Do you want the sub menu to remain open or collapsed? It is not possible for the sub menu to be open already when you visit a page, it will/should always be collapsed.
Regards,
TomThanks Tom – I want it to remain open on a new page, when youve clicked it open on the previous page – like the bbc website > https://www.bbc.co.uk/news/business-57578060.
Showing you where you have come from essentially like breadcrumbs.
But from the sounds of it not possible with mega menu – is there a way to custom input java for this?
Thank you
Hi limtu,
For that style of menu, I would recommend actually using 2 menus: the top menu that displays on every page, and a second menu underneath that changes based on which page you’re looking at.
Regards,
TomThanks Tom
That sounds promising. Please could you point me in the right direction on how to add a second menu – is it something along these lines? > https://wordpress.org/support/topic/creating-2-menus-on-the-main-page/
Thank you for your help and time
Hi limtu,
It is along those lines yes, here is a more in depth tutorial:
https://wpmudev.com/blog/add-menus-to-wordpress/
Regards,
Tom
The topic ‘Sub menu to remain open’ is closed to new replies.