WordPress.org

Ready to get started?Download WordPress

Forums

Update to support wp 3 menu (3 posts)

  1. DarkWolf
    Member
    Posted 3 years ago #

    Can you update to support custom menu present in wp 3.* ?
    -
    And maybe also to insert facebook (both to twitter and rss)? :)

  2. Gyroscopic
    Member
    Posted 3 years ago #

    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.

  3. Gyroscopic
    Member
    Posted 3 years ago #

    WTF pastbin! anyway heres the link... http://wordpress.pastebin.com/zxu4eiGD

    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...

    <?php
    $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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags