Assigning secondary menu to one page
-
Hi,
I am currently helping to build a site here: https://preview.screencult.com
I have created a secondary menu by inputting this into functions.php:
// This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), 'secondary' => __('Secondary Navigation', 'twentyten') ) );
However, I just want the secondary menu (without the primary menu) to appear on one particular page on the site. Where do I place the following code and how to add necessary conditional tags to make sure it only appears on one page?
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
Many thanks, I tried searching for the answer already so my bad if it exists somewhere else.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Assigning secondary menu to one page’ is closed to new replies.