• I have an query that is At first time when i am importing wptest.xml file
    Menu is not displaying.

    In header.php file I have written below code :

    <div class=”mega-menu”>
    <?
    php wp_nav_menu( array( ‘theme_location’ => ‘primary’,
    ‘fallback_cb’ => ”, ‘container’ => false) ); ?>
    </div>

    And also help me how to set its depth because when menu will appear it show me all option with its child.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Many themes have different menu options, different locations for menus. It is very easy to create a menu and then to overlook setting that menu to a specific location.
    Log into your wordpress management, then Dashboard > Appearance > Menus
    and check what is in the menu and the location tabs.

    First of all, are you working with a theme you downloaded either for free or for a cost? Or are you working with a custom theme you made?

    If you are working with a theme you downloaded either for free or for a cost then create a child theme: Create a child theme.

    Now, if it is a theme you created yourself, like Ross said, you have to go to the backend then Appearance -> Menus and make sure that the location for the menu is set to primary (header).

    By the way, this is the wrong thread to post your inquiry as this tends to people installing WordPress.

    Thread Starter Pushpendu Paul

    (@pushpendu-paul)

    I know this option already but my problem is that if no menu is select at initial stage of Installation then I have to show some default menu which is not display right now in my theme.

    Please provide some idea soon….

    This is what you need to do:

    • Create a menu
    • Assign this menu a location of Primary/Top/Main whichever
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Menu is not displaying’ is closed to new replies.