• Resolved speds

    (@speds)


    Hello!

    Please can someone help me out because I’m stuck. I am using Twenty Eleven theme, and have managed configure it to Seven Support Theme, yet I cannot see the Menus on my navigation bar after creating the menus on the Menu Dashboard. See below are my function.php and header.php:

    FUNCTION.PHP (part of my function.php)

    [ Code moderated. For more than 10 lines of code please pastebin.com instead. ]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Did you select the menu under ‘Theme Locations’ at Admin->Appearance->Menus?

    Thread Starter speds

    (@speds)

    Yes! But nothing shows up.

    Please put your code is a pastebin and post a link to it here so it can be examined for problems.

    Thread Starter speds

    (@speds)

    This are my codes:

    FUNCTION.PHP

    [746 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    You are only allowed to post ten lines of code here!

    Please put your code is a pastebin and post a link to it here so it can be examined for problems.

    Thread Starter speds

    (@speds)

    Yes vtxyzzy,Thanks. But, I have seen my pages on my navigation bar via their menus, but my pages are also vertically outlined on the left side of my page header. This is occurred as I ran “theme support 9 menus”, and put some codes my HEADER PHP and FUNCTION PHP.

    Please see the codes on this link: https://pastebin.com/5Ke1xjkT

    You can view the site: https://www.onlineworkdata.com

    Thanks very much.

    Thread Starter speds

    (@speds)

    If you open your Home page and look at the source code, you see that the menu is repeated 16 times just under the ‘main’ div.

    There is one menu for each time you call ‘wp_nav_menu’ in your header.php. Each time you call wp_nav_menu(), it outputs a menu. See this Codex article for a description of how to use it and register_nav_menus:

    https://codex.www.ads-software.com/Function_Reference/wp_nav_menu
    https://codex.www.ads-software.com/Function_Reference/register_nav_menus

    I think the problem is that you registered the locations with an initial capital letter:

    'Nav1-menu' => __( 'Nav1 Menu' ),

    but called wp_nav_menu() with an all lower case location:

    <?php wp_nav_menu( array( 'theme_location' => 'nav1-menu' ) ); ?>

    wp_nav_menu() could not find the location you specified, so it defaulted to the first non-blank menu.

    Thread Starter speds

    (@speds)

    I appreciate your help. How do I remove the list of the pages that are outlined on the Main div, after putting the codes properly, they are still there.

    Look my edited codes update at https://pastebin.com/9pqwcgVE

    Also see my site https://www.onlineworkdata.com

    Thanks for your help.

    Please I have a similar issue, i was using a particular theme, but after i changed to my present theme, my custom menus stopped showing…I tried configuring it using the Appearance-meu, but it still didnt work

    Thread Starter speds

    (@speds)

    IfeanyiG, what is your former theme, and the new theme?

    I would advice you to register with pastebin.com, paste your function and header php over there, and copy the link on your post for observation. Then, include your domain link also for observation. For now you cant get help because there is no way to access your problem.

    Can you see the way I present my problem?

    Thanks.

    @speds,

    Take out all lines like these in header.php:

    <?php wp_nav_menu( array( 'theme_location' => 'nav1-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav2-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav3-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav4-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav5-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav6-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav7-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav8-menu' ) ); ?>
    <?php wp_nav_menu( array( 'theme_location' => 'nav9-menu' ) ); ?>
    Thread Starter speds

    (@speds)

    Thanks. I appreciate. Its ok.

    Thread Starter speds

    (@speds)

    please can someone help me out, i am using themeeleven child of wordpress 3.4, how do i create fullwidth?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘I can't see my custom menus on the navigation bar’ is closed to new replies.