Hey there,
Unfortunately thats not possible as there is no WordPress hook to check if a menu is empty or not but you can easily use the shortcode and only show the menu when a user is logged in.
There are instructions on how to do this below:
https://responsive.menu/docs/advanced-setup/shortcode/
All the best
I can use:
if ( is_user_logged_in() ) {
}
in my template files, all i need to know what classes I need to hide to hide the menu for people not logged in (empty then).
Hi there,
I think you have misunderstood it slightly, please look at the example on the documentation page. I have copied it below for convenience:
if(is_user_logged_in())
echo do_shortcode('[responsive_menu]');
There is no need for any classes – it will simply show or hide the menu if someone is logged in or not.
Ohhh, I understand now…
You are awesome! Really!
Hey,
No problem – I’m just glad it worked for you!
Enjoy!