Highlight Parent menu when child page is open

Ideas! We love to hear them. Your ideas are the features we add next.
Post Reply
Trannum3487
Posts: 116
meble kuchenne Mikołów Knurów Czechowice-Dziedzice
Joined: Mon Apr 19, 2021 8:27 am
Website: www.scottcoxconsulting.com

Highlight Parent menu when child page is open

Post by Trannum3487 »

Greetings,

I have three children web pages of a Parent webpage and I wanted to highlight the Parent menu when a child page is open. HTML for the Navigation menu is not in our hands. Below is the code which fetch the menu items and shows up on the Header.

<ul class="nav navbar-nav">
<?php PrintNavBar(); ?>
</ul>

I believe, there should be any class assigned to an active children menu item, along with the parent menu item. At present, there is no way to see which child page is active.
I want to highlight the active child menu item, along with its parent menu.
Poly-Machine.png
Poly-Machine.png (633.07 KiB) Viewed 1298 times
Look at the attached screenshot. "Poly Machine" is the first child of the "Services" web page and is open. But there is no way to apply CSS code to the active child menu along to its parent menu. Can you do some code to assign a class to an active child menu item as well as add one class to its parent menu item?

Feel free to ask any question.

Thank you.
User avatar
Dave
Support Team
Support Team
Posts: 1221
Joined: Wed May 11, 2011 10:30 am
Website: www.allprowebtools.com
Contact:

Re: Highlight Parent menu when child page is open

Post by Dave »

Thanks for the suggestion! This feature is not currently available. We will consider adding this in a future version release.
Post Reply