Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide BP widgets

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is how I did it on my site: (it just prevents BP from registering the widgets)

    // Remove buddypress widgets from blogs other than the main blog
    function hide_bp_widgets() {
    if (!is_main_blog()) remove_all_actions(‘bp_register_widgets’);
    }
    add_action(‘plugins_loaded’, ‘hide_bp_widgets’, 1); // Has to run before bp_setup_widgets()


    Shnooka30
    Participant

    @shnooka30

    @Richard Venable

    Thanks, did you drop that in the CSS file?


    modemlooper
    Moderator

    @modemlooper

    Functions go in a file bp-custom.php put this file in your plugins directory


    Shnooka30
    Participant

    @shnooka30

    Im confused, so I need to create a plug-in. I tried adding the following code to a file named “bp-custom.php” and then dropped into my plug-ins folder and got a error.on all my pages

    Then I tried to drop that same file into buddypress and it didnt work.

    The file goes in your plugins directory. What error message did you receive?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide BP widgets’ is closed to new replies.
Skip to toolbar