Archived topic
Site not displaying User Menu in left Sidebar after changing settings
2 replies · Started by Patricia on November 15, 2018
I have a website that had a user menu set in the left sidebar. I had added a code snippet to hide the user menu from logged out users. This displayed nicely on the old site.
I rebuilt the site using the Catalyst site in the site library. I've set up the same user menu and set it to display in the left sidebar but it doesn't show. The menu or the sidebar. I can't figure out what setting has changed to make it not display now. Any ideas?
Here's the snippet if that makes a difference.
add_filter( 'generate_sidebar_layout','tu_logged_out_sidebar' );
function tu_logged_out_sidebar( $layout )
{
if ( ! is_user_logged_in() ) {
return 'no-sidebar';
}
// Or else, set the regular layout
return $layout;
}
Ok, nevermind. I got it sorted.
Glad you figured out :)