Want Primary Navigation to Change on Registered user Only Pages
-
I’m building a member only site and I want to only have member pages navigation links in the primary nav visible after the user has logged in. Right now I have all the page links shown in the primary nav which is a problem. I’m using the Responsive Theme 1.4.9 and I see that there so some changes need to be done in the functions.php and header.php file
I’ll list my current code in those two files below, please help with the php code snippet to replace the default theme code as you did on similar post…functions.php code looks like this
register_nav_menus(array( 'top-menu' => __('Top Menu', 'responsive'), 'header-menu' => __('Header Menu', 'responsive'), 'sub-header-menu' => __('Sub-Header Menu', 'responsive'), 'footer-menu' => __('Footer Menu', 'responsive') ) );
header.php code looks like this
<?php wp_nav_menu(array( 'container' => '', 'menu_class' => 'top-menu', 'theme_location' => 'top-menu') ); ?> <?php } ?>
Please help me
- The topic ‘Want Primary Navigation to Change on Registered user Only Pages’ is closed to new replies.