Forums
Home / Themes and Templates / How to change from one nav to the other after log in
(@dustin1)
11 years, 1 month ago
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.
(@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 } ?>