Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active November 10, 2017 13:17
Show Gist options
  • Select an option

  • Save thecodepoetry/45eb4f9d6ce40d06c802 to your computer and use it in GitHub Desktop.

Select an option

Save thecodepoetry/45eb4f9d6ce40d06c802 to your computer and use it in GitHub Desktop.
buddypress fix
add_action( 'get_header', 'dt_buddypress_template_config', 10 );
function dt_buddypress_template_config() {
$config = Presscore_Config::get_instance();
if( bp_current_component() ){
$config->set( 'sidebar_position', 'disabled' );
$config->set( 'footer_show', '0' );
}
}
@thecodepoetry

Copy link
Copy Markdown
Author

try this in your functions.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment