murrayd333
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding Multiple Menus in a Template Built From ScratchI just had an Ah Ha Moment!
O.k. here is my mistake.
I had put: ‘theme_location’ => ‘Services Navigation’
Services Navigation is the human readable name of the menu not what I registered it as in my functions.php as follows:
register_nav_menus( array(
‘primary’ => __( ‘Primary Navigation’),
‘services-nav’ => __( ‘Services Navigation’),
‘ourteam-nav’ => __( ‘Our Team Navigation’),
) );So the code in services-page.php template should have been:
‘theme_location’ => ‘services-nav’
Thanks DMBarber for helping me out I appreciate it a lot. If I didn’t have someone to talk to about this I would have never figured it out.
Forum: Fixing WordPress
In reply to: Adding Multiple Menus in a Template Built From ScratchI am doing something wrong I tried that a bunch of times and ways I could think of and kept getting syntax errors
This is my code for my Team Page Template:
<?php
/*
Template Name: Our Team Page
*/get_header(); ?>
<div id=”TeamPageBackground”>
<div id=”TeamPageNav”>
<div>
<h2>
OUR TEAM
</h2>
</div><?php wp_nav_menu( array( ‘theme_location’ => ‘Our Team Navigation’ ) ); ?>
</div>
<div id=”TeamPageContent”>
<?php get_template_part( ‘loop’, ‘page’ ); ?>
</div>
</div>
<?php get_footer(); ?>