Dynamic Menu Highlighting on a dynamic menu
-
I have tried the “Dynamic Menu Highlinghting” for my static pages and it works fine on my main menu. The problem is that I have another submenu that is generated dynamically. How do I get the “option selected” effect on the items of this second menu?
I attach the code of my sidebar.php in case it helps:
<div id="sub_nav"> <?php if (is_page (array (2,4,6,8))) { wp_list_pages('child_of=112&title_li=<h1>' . __('Services') . '</h1>' ); } elseif (is_page (array (1,3,5,7))) { wp_list_pages('child_of=70&title_li=<h1>' . __('Company') . '</h1>' ); } else { ///Here it will come the sidebar info for the Blog (not ready yet)/// } ?> </div>
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Dynamic Menu Highlighting on a dynamic menu’ is closed to new replies.