Main with secondary navigation using parent and child
-
I’m currently installing main navigation on my site:
https://www.mohrdesigns.com/consumer-productscode in header file:
<ul id="nav" class="solidblockmenu"> <?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?> </ul> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul id="subnav"> <?php echo $children; ?> </ul> <?php } else { ?> <?php } ?>
This does everything I want it to do EXCEPT I want to allow the user the ability to roll over any of the top level (parent) links and they can then view the second level (child) links. Regardless of what page they’re on. How can I do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Main with secondary navigation using parent and child’ is closed to new replies.