-
AuthorPosts
-
April 20th, 2014 at 09:04 #24906
undra
I created two menus and added custom code to my header.php to open either menu based on if the user is logged in or not. But when i added the custom code, it changed the format of my navigation making the buttons smaller. I want to still use the format of the original theme settings, but can’t figure out how. Here is the section of code that i added to my header.php below:
<nav id=”access” role=”navigation”>
<?php
if( is_user_logged_in() ) {
$menu = ‘logged-in’;
} else {
$menu = ‘logged-out’;
}
wp_nav_menu( array( ‘menu’ => $menu, ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) );
?></nav><!– #access –>
I have tried all sorts of things with thew style.css file, but nothing seems to work. Can someone direct me in what i need to do to make this work
April 21st, 2014 at 14:45 #24926Walt
Pretty sure nobody’s gonna help ya since you took the Parabola link off the footer…
April 22nd, 2014 at 13:31 #24937lin
By “main navigation window” is she talking about the presentation page?
May 17th, 2014 at 23:23 #25434Sylvia
Hi undra:
From reading your php code… it looks like you want a set of menus for Members and a different set for logged OUT members. Yes?
If so there is a plug in that can handle that for you. Look for and install.
Menu Items Visibility Control- Version 0.3 | By Hassan DerakhshandehIt will allow you to control who sees what menu items based on their membership (user, editor, etc)
-
AuthorPosts
The topic ‘How to format my main navigation window’ is closed to new replies.