Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active February 3, 2020 10:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/4af3262d7ef84a25ff77954c597924de to your computer and use it in GitHub Desktop.
Save KaineLabs/4af3262d7ef84a25ff77954c597924de to your computer and use it in GitHub Desktop.
Disable Profile Header / Navbar / Sidebar
<?php
// Disable Header.
function yzc_disable_profile_header() {
return false;
}
add_filter( 'yz_display_profile_header', 'yzc_disable_profile_header' );
// Disable Navbar
function yzc_disable_profile_navbar() {
return false;
}
add_filter( 'yz_display_profile_navbar', 'yzc_disable_profile_navbar' );
// Disable Sidebar.
function yzc_disable_profile_sidebar() {
return false;
}
add_filter( 'yz_display_profile_sidebar', 'yzc_disable_profile_sidebar' );
/*
// Make the content column full width
.buddypress .yz-page-main-content .yz-main-column {
width: 100%;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment