I have added a Members Login page to my menu but I can’t see it when I’m viewing the website on my phone or in an incognito mode tab. Why is this?
Members Login not appearing in menu
A simple solution is to create two menus, MainMenu and MainMenu_LoggedIn, and put this code in your functions.php to allow a different menu to be displayed on your site whether a user is logged in or not.
Simple
function my_wp_nav_menu_args($args = '')
{
if (is_user_logged_in()) {
$args['menu'] = 'MainMenu_LoggedIn';
} else {
$args['menu'] = 'MainMenu';
}
return $args;
}
add_filter('wp_nav_menu_args', 'my_wp_nav_menu_args');
1 Like
Thank you, Gerard.
I’ve solved the problem but I really appreciate this information. It will be very helpful in the future 
2 Likes
Good to hear, why not post us a link so we can see your site.
1 Like
Hi Gerard,
Here’s the link to my site - https://www.thearttherapyresourceshub.com/
I am undergoing a review of it with a group of university students, but all the fundamentals are set and I’m almost ready to launch.
Any ideas or suggestions would be greatly appreciated 
Sue
1 Like