Fix the Nav Bar?

Discussion in 'WordPress' started by LadyHoldem, Jul 15, 2010.

  1. #1
    I just updated the theme on this site, the menu bar is all funky. . . I can't really code, but i can fix tidbits..

    Here's the current code:

    <div id="navbar">
    
    
    <?php wp_nav_menu('container_id=navleft&menu_id=nav&sort_column=menu_order&container_class=navigation');
        ?>
       
    
      <div id="navright">
    
          <form style="margin:0px; padding:0px;" method="get" action="<?php bloginfo('url'); ?>">
      <input class="searchinput" value="Enter search term(s)" onfocus="if (this.value == 'Enter search term(s)') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter search term(s)';}" type="text"  name="s"/>
     <input class="searchsubmit" type="submit" value="Search" />
        </form>
    
    
      </div>
    
    </div> <!--End of Nav-->
    Code (markup):

     
    LadyHoldem, Jul 15, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is the site running Wordpress 3.0? Try this:
    <?php wp_nav_menu(array('container_id'=>'navleft','menu_id'=>'nav','container_class'=>'navigation'));
    Code (markup):
    According to the Codex, sort_column is not a parameter for wp_nav_menu but it is for wp_page_menu.
     
    Last edited: Jul 15, 2010
    Cash Nebula, Jul 15, 2010 IP
  3. LadyHoldem

    LadyHoldem Well-Known Member

    Messages:
    911
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Yep it's 3.0 now. I changed it to what ya had there, still messed up :/
     
    LadyHoldem, Jul 16, 2010 IP
  4. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #4
    hi,
    i checked ur site.it seems that css style for menu is missing.
     
    bhuthecoder, Jul 16, 2010 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    bhuthecoder is right, that is the problem after all. Inside header.php, change <div id='menu'> to <div id='nav'>.
    There is not enough room for all of the menu items. You can either delete them, reduce the font and spacing, or make the navbar taller.
     
    Last edited: Jul 16, 2010
    Cash Nebula, Jul 16, 2010 IP