Support » Fixing WordPress » Update to support wp 3 menu

  • Can you update to support custom menu present in wp 3.* ?

    And maybe also to insert facebook (both to twitter and rss)? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have modified the theme to use wp3 menus.

    I changed header.php to the following…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Works a treat on all non-ie browsers! Hmm… The problem is that now all IE browsers only show the Home menu item and nothing else.
    I experimented by taking out the extra div and ul tags which the wp_nav_menu puts in the code and the menu is displayed properly – obviously this is not the best solution as wp_nav_menu works on its own and I dont like playing with core code.

    If anyone can suggest how to fix this I’d be greatful. Soooo close and yet sooo far!!

    Not really sure why it doesnt display in ie but it may be a css issue relating to the div under the UL id “menus” but I cant find it.

    WTF pastbin! anyway heres the link…

    Ok, I worked a bit more on this and if I use certain arguments for wp_nav_menus I can remove the container div but that didnt really help on its own.

    If I then remove all inove menu items from header.php and use the following args…

    $menu_args = array(
      'theme_location'  => "",
      'menu'            => "",
      'container'       => "",
      'container_class' => "",
      'container_id'    => "",
      'menu_class'      => 'menu',
      'menu_id'         => "menus",
      'echo'            => true,
      'fallback_cb'     => 'wp_page_menu',
      'before'          => "",
      'after'           => "",
      'link_before'     => "",
      'link_after'      => "",
      'depth'           => 0,
      'walker'          => "");
    wp_nav_menu($menu_args); ?>

    I get a menu in all browsers! I just dont get the styling for the Homepage button or the last ending cheveron – but if I add two menu items to the wp menu I can approximate the original menu look and feel.

    What I did was create a new menu item called Home and place it at the top of my menu structure. I then created another item placed at the bottom with a url of ‘#’ and a description of ‘ ‘ (thats a space btw). This gives me the ending cheveron.

    For me its acceptable and it works. Really inove need to update the theme properly for wp3 menus. Still, I do love the theme 🙂

    If anyone has a better solution, please update this or let me know. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update to support wp 3 menu’ is closed to new replies.