How to format my main navigation window

  • Author
    Posts
  • #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

    #24926
    Walt

    Pretty sure nobody’s gonna help ya since you took the Parabola link off the footer…

    #24937
    lin

    By “main navigation window” is she talking about the presentation page?

    #25434
    Sylvia

    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 Derakhshandeh

    It will allow you to control who sees what menu items based on their membership (user, editor, etc)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to format my main navigation window’ is closed to new replies.