Hi,
A month ago I had a trouble in “no display” the sidemenu on the group subpages. You send me this snippet. It worked for some time.
But now, I’ve reinstalled the theme and everything, and every time I activate this snippet I find 2 bugs:
-The Top Right menu go crazy.
-The sidemenu logo does not load.
Is there a way to do this (hide sidemenu on the group subpages) without causing more bugs?
function disable_sidemenu_on_groups_component($data, $option) {
if (bp_is_groups_component() AND !is_user_logged_in() ) {
if ($option = ‘header_sidemenu’) {
$data = false;
}
return $data;
}
}
add_filter(‘sq_option’,’disable_sidemenu_on_groups_component’,10, 2 );