WordPress.org

Ready to get started?Download WordPress

Forums

Montezuma
Where is menu 2? (4 posts)

  1. tetutato
    Member
    Posted 1 year ago #

    I see two theme locations for the menus but the second one doesn't seem to do anything and I can't find it anywhere on the site after assigning a menu to it. Is this a bug?

  2. CrouchingBruin
    Member
    Posted 1 year ago #

    You just have to define where you want the menu to appear. If you want to put it in your header, you would edit your virtual header file (from the Dashboard, go to Appearances > Montezuma Options > Sub-Templates > header.php). If you want to put it in the footer, you would edit footer.php. Once you decide where you want to put it, then you make a call to wp_nav_menu() to display the menu. If you look at the end of the header.php file, you'll see a call that adds menu1 to the bottom of the header. Just copy & paste the existing code for menu1, changing the theme_location from menu1 to menu2.

    If you have further questions, you can post them in the Bytes for All Montezuma support forum.

  3. juggledad
    Member
    Posted 1 year ago #

    if you use wp_nav_menu, make sure to change the settings so the ID is unique and it points to the other menu. In other words, don't just copy and past the original or you will get what you tell it to do (grin)

  4. CrouchingBruin
    Member
    Posted 1 year ago #

    Good catch, JuggleDad, yes, menu_id should be changed from menu1 to menu2 (or some other unique ID) as well. You'll probably need this ID to apply any unique styling in your CSS files.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.