Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Help: Can't get menus to work - pages from menu show instead (http://forum.bytesforall.com/showthread.php?t=20645)

RobMontreal Jul 15, 2013 06:26 PM

Help: Can't get menus to work - pages from menu show instead
 
Hi,

I am working on this site: www.waterworksmontreal.com.

I have set up the Menus so that there is a "Menu" called "Shows" with a single page below it called "Palace of the End March 2013"; then there is supposed to be a second menu called "The Company" with a page underneath called "News and announcements".

Instead, I am getting what you see here- just the pages underneath, not the menus I defined, and with the formatting screwed up.

Here are my specifications:

My settings under Menu:

2 Menus--
One called "Shows/Spectacles" which is assigned to Theme Location 1. It has one page linked, called "Palace of the End March/mars 2013"
Another called "The Company/La compagnie" which is assigned to Theme Location 2. I has one page called "News and announcements".

My sub-template header.php code:

<div id="banner-bg" class="cf">
<div id="banner" class="row">
<div id="logo-area" class="col5">
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>
<?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'
) ); ?>
<?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' => 'menu2',
'fallback_cb' => 'bfa_page_menu'
) ); ?>

</div>
</div>

<a href="<?php bloginfo( 'rss2_url' ); ?>" class="rsslink" title="<?php _e( 'Subscribe to RSS Feed', 'montezuma' ); ?>"></a>


<div id="breadcrumbs1-bg">
<nav id="breadcrumbs1" class="breadcrumbs lw">
<?php bfa_breadcrumbs( 'breadcrumbs1' ); ?>
</nav>
</div>

Any help will be appreciated !


Rob

juggledad Jul 15, 2013 07:04 PM

'container_id' => 'menu1-wrapper',
'menu_id' => 'menu1',

Both should be unique, ie you have two menus using the same ID's

RobMontreal Jul 15, 2013 07:17 PM

Thanks!

That does cause both buttons to appear now, but it doesn't solve the root problem: that I have configured menus, and it's showing me pages instead.

Rob

RobMontreal Jul 15, 2013 07:32 PM

OK, I am beginning to realize I misunderstood the idea of menus. I thought the pages would be sub-items under headers called by the Menu's names... but I think I am wrong about this.

I'm withdrawing the question til I get it straight. Thanks!


All times are GMT -6. The time now is 07:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.