BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Hiding Buddypanel
Tagged: big logo, buddypanel, hide buddypanel, left sidebar, logo, sidebar, small logo
- This topic has 32 replies, 8 contibutors, and was last updated 9 years, 4 months ago by
Anonymous.
Question
April 29, 2015 at 3:22 pm #39554@wewoofSorted, thanks!
Answers
April 29, 2015 at 3:23 pm #39555@wewoofSorted, thanks!
Is it possible to make the BuddyPanel minimized by default?
April 29, 2015 at 8:50 pm #39570May 25, 2015 at 8:28 am #40623@effluxYou’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;
}May 25, 2015 at 8:48 am #40627@alyssa-buddyboss
AlyssaParticipantThanks Brett!
June 22, 2015 at 10:39 am #41468@snikayThanks 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; }
June 22, 2015 at 11:22 am #41472@alyssa-buddyboss
AlyssaParticipantThanks for adding to this!
June 22, 2015 at 1:47 pm #41483@snikayIt 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?
June 22, 2015 at 4:16 pm #41489@alyssa-buddyboss
AlyssaParticipantREDACTED to prevent confusion and bad code
June 22, 2015 at 4:54 pm #41492@snikay@tjchester this pretty much does nothing :/
The Panel for logged in is not hidden but closed though.June 23, 2015 at 7:16 am #41523@alyssa-buddyboss
AlyssaParticipant@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?
June 23, 2015 at 9:54 am #41529@snikay@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:
June 23, 2015 at 9:01 pm #41552@alyssa-buddyboss
AlyssaParticipant@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 withsmall
also,
buddyboss_logo
replace with:
buddyboss_small_logo
June 24, 2015 at 8:29 am #41583@snikay@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?October 19, 2015 at 1:37 pm #49124@chaulanHi @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!
- The question ‘Hiding Buddypanel’ is closed to new replies.