WordPress.org

Support

Support » Themes and Templates » How to change from one nav to the other after log in

How to change from one nav to the other after log in

  • After a member logs in, how would you change the temple to be able to switch to the other nav bar? I have created one for guests and one for members and if the members log in, I want it to access the member’s bar. I’m using the Esplanade theme.

Viewing 1 replies (of 1 total)
  • Mark Wilkinson
    Participant

    @wpmarkuk

    You would need something along these lines in your template file where the nav is called:

    <?php
    if( is_user_logged_in() ) {
      // code for navbar for logged in users
    } else {
      // code for navbar for none logged in users
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How to change from one nav to the other after log in’ is closed to new replies.