BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Hiding Buddypanel
Tagged: big logo, buddypanel, hide buddypanel, left sidebar, logo, sidebar, small logo
Hey,
How do I hide the BuddyPanel?
Thanks
@wewoof you can change the page template to No BuddyPanel for any page.
Where can I activate it? I just found under customize but only hide for logged out users, I want also hide for all users.
Thanks!
I 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
@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.
Thank 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
Any update?
@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');
Thanks 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?
Sadly it is still on all other pages, like the member page.
@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;}
Finally :D:D It works!! Thank you very much TJ!!
.
Really 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?