• Hello!

    I am trying to customize my menu so that once someone logs into my site, they will see a different menu. To do so, I am required to change the block of code in the theme that is displaying the navigation menu. Generally the navigation menu code resides in the “header.php” template file of a theme. For example, some themes code may look like

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

    But in the Customizr theme the code containing the menu call in the header looks like

    `<?php
    //the ‘__header’ hook is used by (ordered by priorities) : TC_header_main::$instance->tc_logo_title_display(), TC_header_main::$instance->tc_tagline_display(), TC_header_main::$instance->tc_navbar_display()
    do_action( ‘__header’ );
    ?>`

    Modifying that code is not working for me under the directions I have.

    I need to know if anyone has any idea of some other menu code in a different file that I could edit to achieve this customization I am looking to achieve.

    My website is https://thedriverhub.com

    Thanks in advance for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter PleaseHelpMePlease

    (@pleasehelpmeplease)

    By the way, if a theme did have a menu code that looked like

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

    Then the change I would need to make is

    `<?php
    if ( wp_emember_is_member_logged_in() ) {
    wp_nav_menu( array( ‘menu’ => ‘logged-in-members’ ) );
    } else {
    wp_nav_menu( array( ‘menu’ => ‘normal-visitor-menu’ ) );
    }
    ?>`
    Not sure if that will help anyone assist on this question.

    Thread Starter PleaseHelpMePlease

    (@pleasehelpmeplease)

    Nevermind. I will use a plug-in and make my life easier…thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation Bar Issue’ is closed to new replies.