Different Navigation Menu's for Different Pages
-
Hello, I have a question regarding using css for different navigation menu’s for different pages. I have a website, and then a separate blog page under the same account. I installed a plugin for my blog so that it has a different theme template than that of my default template for my website. So “blog” has a different template and uses a different css coding than for my main website.
I am trying to figure out how I can use different menu bars for each of the pages.
in the functions.php for my blog theme I found:/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
‘primary’ => __( ‘Primary Menu’, ‘landscape’ ),
) );and on the header.php I found:
<body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<?php do_action( ‘before’ ); ?>
<header id=”masthead” class=”site-header” role=”banner”>
<nav role=”navigation” class=”site-navigation main-navigation”>
<h1 class=”assistive-text”><?php _e( ‘Menu’, ‘landscape’ ); ?></h1>
<div class=”assistive-text skip-link”>“><?php _e( ‘Skip to conlandscapet’, ‘landscape’ ); ?></div><?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav><!– .site-navigation .main-navigation –>
<div id=”logo”>
<h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>What modifications and changes do i need to make so that I can specifically use the desired menu navigation page I want for different pages? I have already created a custom menu under “menus” for wordpress and named it.
The topic ‘Different Navigation Menu's for Different Pages’ is closed to new replies.