• I am working on a website/blog setup that has 2 navigation menus at the top. A simple one (top_menu) with a few items across and another one (main_menu) a bit further down with more styling and drop downs. Both show up in the customs menu field as ‘top_menu’ and main_menu’. I added child pages to the ‘main_menu’ one and they work great. However.. I cannot get the child pages for the ‘top_menu’ displayed at all. I drag the pages into the right custom menu section but nothing happens.

    The Menu Window in the Dashboard also says this: ‘Your theme supports 1 menu. Select which menu you would like to use.’ And there I can choose between ‘top_menu” and ‘main_menu’… but it doesn’t seem to make a difference. Help.. it’s driving me crazy!

    What am I not seeing? A link can be found here: About Us

Viewing 3 replies - 1 through 3 (of 3 total)
  • what is the code in header.php to show the menues?

    (please use the http://pastebin.com/ – see http://codex.wordpress.org/Forum_Welcome#Posting_Code )

    i suspect that the code for the top menu is restricted to one level only, which probably also means that the css does not support a dropdown of the top menu.

    In header.php you will see the calls to the menus or template parts that load them.

    One might look something like:

    <?php wp_nav_menu( array( 'depth' => 1 ,'theme_location' => 'top_menu' ) ); ?>

    Change the depth to 0 or remove the depth argument, however as Alchymyth has already said, if the menu are styled differently, then you might not have the styles for the dropdowns in the style.css file.

    If you paste header.php and style.css to pastebin we can get a better overview.

    HTH

    David

    Thread Starter daufhne

    (@daufhne)

    Thank you for your responses. Below is the code for the 2 menus as it shows up in the header_php. ‘menu=top_menu’ is the one that doesn’t allow drop downs and ‘menu_main’ does. I did change the depth of top_menu to 0 and it did nothing. Actually.. the last nav item disappeared altogether. Thank you for your help.

    <div class="naver">
    <?php wp_nav_menu('menu=top_menu&depth=1&container='); ?>
    <div class="clear">></div>
    <div class="paging">
    	<div class="menu_bg">
    		<div class="menu_wrap">
    			<?php wp_nav_menu('menu=main_menu&depth=3&container=&link_before=<span class="pag_l"><span class="pag_r">&link_after=</span></span>'); ?>
    			<div class="clear"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two Separate Navigation bars with drop downs’ is closed to new replies.