I love the theme and features, just need a little help on changing the main menu.
I have a member’s area on my website and that work great, but I want to change the main menu to a custom menu once the user logs into the site. How do I do that? Or if I can’t do that through the admin panel, what code would I need to switch main menus upon user log in?
Thanks in advance for your help
Unfortunately that’s a bit beyond the scope of what we can offer with support. You would need to create a new menu to assign in the Menus manager and then add the if/then code for logged in vs non logged in.
If you are interested in pursing it, there is a code sample here: http://codex.wordpress.org/Function_Reference/wp_nav_menu#Different_menus_for_logged-in_users
And you can find the code for the sub-menu creation in functions.php at ~line 248.
The topic ‘Changing main menu on user log in’ is closed to new replies.