• Hey I have been trying to add a custom menu to my theme because it currently doesn’t support them. I have added one to my theme but it is not correctly adapting to my custom theme and I really don’t know what to do next.

    I went into my functions.php and added

    add_theme_support( ‘menus’ );

    I my header.php my code initially looked like this…

    <div class=”wrapper”>
    <div id=”foxmenucontainer”>
    <div id=”foxmenu”>

    • /”>HOME
    • <?php wp_list_pages(‘sort_column=menu_order&depth=1&exclude=21&title_li=’);?>

    But I replace the list pages with the following…

    <?php wp_nav_menu (array(‘menu’=>’custom_menu’,’menu_class’=>’wrapper’));?>

    It works, my menu shows up and is functioning, however the new navigation bar doesn’t align at the top correctly. It is slightly lower than the home page tab. I am really struggling with making it flush. Any suggestions are greatly appreciated.

    Thanks in advance.

  • The topic ‘Custom Menu not working with theme’ is closed to new replies.