BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Hiding Buddypanel
Tagged: big logo, buddypanel, hide buddypanel, left sidebar, logo, sidebar, small logo
Sorted, thanks!
Sorted, thanks!
Is it possible to make the BuddyPanel minimized by default?
You’re better off putting this in functions.php so it sets it directly before the page is rendered.
add_filter(‘body_class’,’extra_body_class’);
function extra_body_class($classes) {
$classes[] = ‘page-template’;
$classes[] = ‘page-template-page-no-buddypanel’;
$classes[] = ‘page-template-page-no-buddypanel-php’;
$classes[] = ‘left-menu-open’;
return $classes;
}
Thanks Brett!
Thanks Brett!
replaced the acute accents with apostrophes:
/** Hide Buddypanel on all sites
--------------------------------------------------------------------- */
add_filter('body_class','extra_body_class');
function extra_body_class($classes) {
$classes[] = 'page-template';
$classes[] = 'page-template-page-no-buddypanel';
$classes[] = 'page-template-page-no-buddypanel-php';
$classes[] = 'left-menu-open';
return $classes;
}
don’t forget to hide icons:
TJ’s method:
body .header-links{display:none;}
or:
a.profile-ico.icon { display: none; }
a#left-menu-toggle { display: none; }
Thanks for adding to this!
It does not respect the Theme Settings:
Desktop Options -> BuddyPanel Default State -> closed
The sidebar stays “open”
TJ wrote:
the code you just posted makes it open: https://www.buddyboss.com/support-forums/topic/hiding-buddypanel/page/2/#post-41468
See the line:
$classes[] = 'left-menu-open';
So perhaps you need to add a check if the user is logged in or not for the other code.
Your’re right! Dumb question, but.. How can i do that?
REDACTED to prevent confusion and bad code
@tjchester this pretty much does nothing :/
The Panel for logged in is not hidden but closed though.
@snikay I’m not certain we are talking about the same thing. What exactly are you trying to accomplish by hiding the BuddyPanel but also wanting the Panel open, these are counter-productive?
@tjchester sorry, gonna clear things up now. I want to hide the panel. That’s working just fine.
But now, the Logo is “big” and i want to have it always shown as “small”. so just like the buddypanel would be “closed”. I don’t need my logo to be big.
This is how it’s looking right now:
@snikay ok, we are on the same page now! 🙂 Copy header.php from your parent theme to child theme. Find line 324 text:
large
replace with small
also,
buddyboss_logo
replace with:
buddyboss_small_logo
@tjchester We always are, my friend 🙂
No really, thanks, but somehow this isn’t working. Nothing happens.
And, if I add an .png-Logo in theme-settings, just no logo is displayed.
Should I send you an invite again via PN so that you could have a look?
Hi @tjchester,
I did exactly as you instructed in #39508 (add code to functions.php and custom.css) but still failed to hide the panel icon.
Do you have any idea why?
Thank you!