• The theme allows two menus. Menu 1 is at the top of the page. Where is Menu 2 located? I created a menu for the location but I didn’t see it on the page.

    Thank you for your help. I am new to this forum. Is there a way to search this theme specific support forum so that I don’t ask questions that are already answered?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s up to you to add the menu where you would like. You could add it in the header, the footer, the content area … the theme gives you the flexibility to put it wherever you need it.

    Look at the header.php subtemplate (Appearance → Montezuma Options → Sub Templates → header.php and you’ll see this code which creates the menu for the Menu 1 menu location:

    <?php wp_nav_menu( array(
       'container' => 'nav',
       'container_class' => 'menu-wrapper col7',
       'container_id' => 'menu1-wrapper',
       'menu_id' => 'menu1',
       'menu_class' => 'cf menu',
       'theme_location' => 'menu1',
       'fallback_cb' => 'bfa_page_menu'
    ) ); ?>

    You can use this bit of code to add your Menu 2 to whatever subtemplate you’d like. The only things you would need to change are:

    1. container_class: you want to make sure the number for the col# class is the correct size for the combined elements in the same row. That is, if you read the documentation under CSS Settings → Editing CSS, you should see that Montezuma is built upon a 12-column grid system, so all of the col# classes for elements in the same row have to add up to 12 in order for the responsiveness in this 12-column grid system to work correctly. In the default header.php file, you can see that the logo-area is assigned a class of col5 and the menu is assigned a class of col7, which is perfect because 5 + 7 = 12. If you want your Menu 2 to appear on a row by itself, you would assign it a class of col12.
    2. container_id: This would set the ID of the nav element in the first parameter. Setting this to menu2-wrapper would probably be a good idea. This sets the unique ID of the Menu 2 nav container so you can style it with CSS, i.e., you may want to copy some of the CSS rules for #menu1-wrapper and change the selector to #menu2-wrapper, altering the properties as you see fit.
    3. menu_id: This sets the ID of the <ul> element inside the <nav> container. Again, setting this to menu2 makes sense, and you’ll want to copy the CSS rules for #menu1 over to #menu2, making any changes that you would like.
    4. theme_location: set this to menu2 so WordPress knows this is the location for your Menu 2 menu.

    Everything else you can leave the same. You can play around with adding it to different sub templates, like footer.php, or maybe you have a custom template where you want a second menu. Or you might even want to create a new copy of header.php for a custom template. For example, if you go to my Montezuma test site, you’ll see my Menu 1 on the home page. But if you click on the menu item for Demo Blog, you’ll be taken to another index (blog) page which uses a main template which includes a custom header that uses my Menu 2.

    If you have an idea about how you want to use your Menu 2, I can try to give you some guidance.

    Is there a way to search this theme specific support forum so that I don’t ask questions that are already answered?

    Unfortunately there’s not a real easy way to search just this forum. However, you can start with this Google search and add your own terms to narrow the search results down. You’ll also want to search the Bytes For All Montezuma support forum.

    Thread Starter brae09

    (@brae09)

    Thanks very much for your reply. I will look into the information you gave. I think I would probably like to place a second menu in the footer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Location of Menu 2’ is closed to new replies.