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 18, 2015 at 8:12 pm #39113@wewoofHey,
How do I hide the BuddyPanel?
Thanks
Answers
April 19, 2015 at 1:32 pm #39126@alyssa-buddyboss
AlyssaParticipant@wewoof you can change the page template to No BuddyPanel for any page.
April 24, 2015 at 1:17 pm #39336@duca24Where can I activate it? I just found under customize but only hide for logged out users, I want also hide for all users.
Thanks!
April 24, 2015 at 1:51 pm #39338@duca24I found page attributes, but I tried with my “Home” Page, but it is still there? How can I deactivate it on the whole site?
Thanks
April 24, 2015 at 5:16 pm #39367@alyssa-buddyboss
AlyssaParticipant@duca24 unfortunately we have not yet been able to create an option to disable the BuddyPanel for the entire site. If you are using the blog roll you may need to copy the no-buddypanel template php file then copy the content from the front-page.php then rename the new no-buddypanel template to front-page.php to change the front page template. Sorry it’s a bit involved but it’s a unique page.
April 24, 2015 at 5:25 pm #39371@duca24Thank you. Where can I find these php files?
So I just copy the content from no-buddypanel template and from front-page.php and mix it?
After that I rename it to front-page.php ?
Thanks
April 26, 2015 at 4:31 pm #39451@wewoofAny update?
April 27, 2015 at 8:40 pm #39484@alyssa-buddyboss
AlyssaParticipantApril 27, 2015 at 9:07 pm #39492@alyssa-buddyboss
AlyssaParticipant@duca24 @wewoof add this to functions.php to make the home page use the no buddypanel template
function no_buddypanel_home(){ ?> <script> if($('body').hasClass('home-page')){ $('body').addClass('page-template page-template-page-no-buddypanel page-template-page-no-buddypanel-php'); } </script> <?php } add_action('wp_footer','no_buddypanel_home');
April 27, 2015 at 9:23 pm #39493@duca24Thanks for your outstanding support!! It is working 80% 😀 Please check the attached pictures.
Can you tell me please why there is still that blue panel if I open it?
April 27, 2015 at 9:28 pm #39497@duca24Sadly it is still on all other pages, like the member page.
April 28, 2015 at 8:55 am #39508@alyssa-buddyboss
AlyssaParticipant@duca24 originally it was only for the home page, this is for all pages:
function no_buddypanel_all(){ ?> <script> $('body').addClass('page-template page-template-page-no-buddypanel page-template-page-no-buddypanel-php'); </script> <?php } add_action('wp_footer','no_buddypanel_all');
And add this to custom.css to remove the ability to open the hidden panel:
body .header-links{display:none;}
April 28, 2015 at 5:20 pm #39523@duca24Finally :D:D It works!! Thank you very much TJ!!
April 28, 2015 at 11:20 pm #39528@duca24.
April 29, 2015 at 2:03 pm #39552@wewoofReally good support, thank you.
However…
Getting the following error: “( ! ) Fatal error: Call to undefined function add_action() in C:\wamp\www\wordpress\wp-includes\functions.php on line 52”
I just simply copy and pasted your code to functions.php, do I have to do more?
- The question ‘Hiding Buddypanel’ is closed to new replies.