Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide BP widgets

  • @shnooka30

    Participant

    Anyone have a clue how to hide or remove BP widgets from sub-blogs.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @rvenable

    Participant

    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

    @Richard Venable

    Thanks, did you drop that in the CSS file?

    @modemlooper

    Moderator

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

    @shnooka30

    Participant

    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.

    @rvenable

    Participant

    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