logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$15
Additional main menu to show in header (Sterling WP Theme)

The Sterling WP theme supports only 2 menu locations ("main menu" and "footer menu"). I need an additional main menu to show in the header of some pages. What is the fastest, best way to do it?

This question has been answered.

swwpsupport | 01/22/13 at 2:39am Edit
Tutorial: How to assign prize money


(5) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    01/22/13
    3:17am
    Kiet Luong says:

    You can use Custom menu shortcode plugin and add shortcode ( Ex : [custommenu menu=Menu] ) to your pages.

    I can help you do it with or without plugin if you want.
    skype: kioluong
    Regards !

  • avatar
    Last edited:
    01/22/13
    3:27am
    Arnav Joy says:

    you can use following function to register menus

    http://codex.wordpress.org/Function_Reference/register_nav_menus

    and can use following function to call it

    http://codex.wordpress.org/Function_Reference/wp_nav_menu

    then you can all it in page and check in which page using following function

    http://codex.wordpress.org/Function_Reference/is_page

  • avatar
    Last edited:
    01/22/13
    8:15am
    Francisco Javier Carazo Gil says:

    With Arnav information and this link you will have all you need: http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/

  • avatar
    Last edited:
    01/22/13
    8:42am
    plovs says:

    To clearify your question: do you want two menus, one under the other, on some? Or do you you want to replace the header menu on some pages?

  • avatar
    Last edited:
    01/23/13
    5:35am
    Ellah A. says:

    Go to your functions.php and add these lines:


    register_nav_menu( 'additional-menu', __( 'Additional Menu' ) );


    And paste these lines to your header of some pages.


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


    You can add custom menu's by going to your dashboard > Appearance> Menus
    And thats it all set.

This question has expired.



Gabriel Reguly, Naveen Chand voted on this question.



Current status of this question: Completed



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.