[Support request] remove top bar from buddypress

Home Forums Support [Support request] remove top bar from buddypress

Home Forums Support remove top bar from buddypress

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1387218
    Jeffrey

    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 );
      }
    }
    #1387392
    David
    Staff
    Customer Support

    Hi there,

    theres the wide scope is_buddypress() template tag.
    See here for more:

    https://codex.buddypress.org/developer/template-tag-reference/

    #1387537
    Jeffrey

    Perfect!

    #1387843
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.