Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing the Buddypress bar ONLY on my home page of my theme????

  • Here is the website: http://www.ex-brief.com

    Using the WPMU default theme. Thanks!

    Just want to not have the buddypress bar on the main page.

    I know I can turn it off for all “not logged in” users but it still shows up on the home page, I dont want it on there EVER, NO MATTER WHAT. thanks

Viewing 6 replies - 1 through 6 (of 6 total)

  • Burt Adsit
    Participant

    @burtadsit

    something similar. I dont want to run around and have to manually put this on all other pages, and all user pages…that could be really fun with a thousand or so members. Anyway, there has to be a simple way to add or remove something just on the main page and thats it to stop it from loading. Any ideas to simplify this?


    Burt Adsit
    Participant

    @burtadsit

    No, you wouldn’t have to do any of that running around. If that theme is only used on that blog and you have it turned off for all other blogs except the home blog on your site, then you just have to drop this into functions.php for that theme.

    remove_action( 'wp_footer', 'bp_core_admin_bar' );
    remove_action( 'wp_head', 'bp_core_add_css' );

    In that theme the admin bar won’t show. Ever. If you use that theme on other blogs then you’ll have to wrap those two calls in some code to detect what blog it’s running on and only make those calls on blog id 1.

    You could also create a plugin that runs in /mu-plugins, use those two calls above and just detect what blog it’s running on and make the calls only for blog id 1. That might be better.

    that worked, once again you are the man. thanks.

    I think the thread you closed ended up being related to WP, not specifically BP, but the people on here are more responsive thann the wordpress.org board. It looks like my background is making that line….not sure how to tweak the .css to make it work right.


    Burt Adsit
    Participant

    @burtadsit

    realfam, bp covers wpmu, bbpress and bp itself. We try to address all three environments simply because we *have to* to get bp running. That thread was a little off topic for the forums. Even though it did relate to wpmu sorta, kinda.

    Then again I just get cranky at times. :)

    this no longer works…..what changed in BPB2???

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing the Buddypress bar ONLY on my home page of my theme????’ is closed to new replies.
Skip to toolbar