ThemeShaper Forums » Thematic


How to add a second WP 3.x menu?

(5 posts)
  • Started 9 years ago by neonbible
  • Latest reply from AnotherAndrew
  • This topic is resolved


  1. neonbible

    When I go to Menus section in the admin conole it says "Your theme supports 1 menu". I do I get Thematic to support 2? And how do I position them?

    E.g. I want first menu to be on top of the header, and second below.


    Posted 9 years ago #
  2. neonbible

    Ah thanks. Been a while since I've visited this forum and completely forgotten about that excellent thread! Thanks.

    Do you how to put this new menu at the top of the branding div?

    Posted 9 years ago #
  3. the process isnt any different. the destination hook is the only thing that changes. my example has you putting the 2nd menu above the header with:


    you just need to add it to a different hook


    would put it just inside the branding open

    visual layouts of thematic hooks

    Posted 9 years ago #
  4. AnotherAndrew

    Try this, paste this into your functions file, and then visit the menu page to edit and add pages or categories:

    // Add additional menus
    // Register the new menus
    function register_my_menus() {
    'primary-menu' => __( 'Primary Menu' ),
    'top-menu' => __( 'Top Menu' ),

    add_action( 'init', 'register_my_menus' );

    ///Top Menu (optional)
    function top_menu() {

    if ( has_nav_menu( 'top-menu' ) ) {
    wp_nav_menu( array( 'theme_location' => 'top-menu',
    'container_class' => 'clearfix ',
    'menu_class' => 'sf-menu', // we assign the sf-menu class to the menu ul so that superfish works on this menu too
    ) );



    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.