ok i found this code and edited it.. how can i get it to also apply to all the buddypress profile and account pages. Like the ones that are autogenerated. I can’t seem to find the right tags?
basically all the pages under /members/’username’/”user_generated_page/
example: /members/’username’/messages/
add_action( 'wp', 'db_disable_topbar' );
function db_disable_topbar() {
if ( is_singular( 'product' ) || is_page( array( 522 ) ) ) {
remove_action( 'generate_before_header','generate_top_bar', 5 );
}
}