Horizontal menu/submenu, not dropdown?
-
<div class="menu"> <ul> <?php wp_list_pages('depth=1&sort_column=menu_order&title_li='); ?> </ul><br /> <?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> <?php echo $children; ?> <?php } ?> </ul> </div>
The menu is horizontal, so is the submenu.
I want the submenu to appair when clicking on the parent..
if children, then load the submenu, if not just go to the parent page..
I don’t want a horizontal dropdown menu with a vertical listing of childrens, I want a horizontal menu with horizontal listing of childrens..Is this possible?
Grid Focus has this function, but I have to edit my header.php each time I add a page.. I want it to be automatically done when I add a page in the admin panel.. A example of Grid Focus used is here. Click on the Archives-button to understand better what I want..I’m sure there is a way, but my PHP-skills isn’t really good. So I’m not capable to do it on my own.. Thanks anyway (:
- The topic ‘Horizontal menu/submenu, not dropdown?’ is closed to new replies.