BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › How to hide BuddyPanel on Front Page only?
- This topic has 7 replies, 2 contibutors, and was last updated 9 years, 6 months ago by Alyssa.
Question
May 22, 2015 at 2:09 pm #40510@antonkawasakiHi guys.
In the page template options, we can have either “No BuddyPanel” or “Front Page Template” — but the only page that I actually want no BuddyPanel IS the Front Page, and we can’t choose both.
So how can we can hide the BuddyPanel ONLY on the page that’s already been designated as the Front Page?
It almost looked like you provided a solution in this thread, but it didn’t actually work:
https://www.buddyboss.com/support-forums/topic/hiding-buddypanel/
There’s still a bar that shows up on the left side (it just doesn’t have anything in it).So I was wondering if there’s been a solution that’s been discovered since?
Thanks!Answers
May 23, 2015 at 3:53 pm #40552@alyssa-buddyboss
AlyssaParticipant@antonkawasaki This is all the code you need, worked for me:
https://www.buddyboss.com/support-forums/topic/hiding-buddypanel/#post-39492
May 23, 2015 at 4:10 pm #40554@antonkawasaki@tjchester Thanks, but that’s the exact solution I mentioned in my initial post that did NOT work for me. When I include that code, the icons and links disappear, but the BuddyPanel bar column still remains (as well as the hamburger icon, which I know I can remove with some CSS).
Ah — as I was writing this, I think I realized what’s going on. Your code (and the CSS tweak) DOES kind of work if, in the customizer, the BuddyPanel Default State (in Desktop Options) is set to “Opened.” However, I have the default state set as “Closed.” I do like the BuddyPanel on all my other pages, but only when it’s minimized.
Unfortunately your code does NOT work for me when the default “Closed” state is set. The bar column remains there (just empty).
So is there another solution that’s possible that REALLY removes the BuddyPanel on the Front Page no matter what default state is set?
Thanks.May 24, 2015 at 5:24 pm #40600@alyssa-buddyboss
AlyssaParticipant@antonkawasaki Add this extra little CSS to custom.css:
body.home-page:not(.left-menu-open) #right-panel-inner{margin-left:0px;}
May 24, 2015 at 5:45 pm #40607@antonkawasaki@tjchester – Cool, that definitely did the trick!
Do you also happen to know how to hide the three line (hamburger) icon, but ONLY on the Front Page? (I still want it for everywhere else that the BuddyPanel actually shows…)
Thanks
May 25, 2015 at 8:12 am #40622@alyssa-buddyboss
AlyssaParticipant@antonkawasaki Sorry about that:
body.home-page .header-links{display:none;}
May 25, 2015 at 8:52 am #40629@antonkawasakiAwesome. Thanks @tjchester!
May 25, 2015 at 4:30 pm #40642@alyssa-buddyboss
AlyssaParticipantAny time.
- The question ‘How to hide BuddyPanel on Front Page only?’ is closed to new replies.