Skip to:
Content
Pages
Categories
Search
Top
Bottom

HowTO: Add “center-column” widgets to the main BP page

  • Hi, I wanted to be able to display some WPMU/BP widgets on the main page along with the blogs directory and listing and found nothing to do so.

    So I hacked a little and came with a solution:

    File: mu-plugins/bp-blogs/directories/bp-blogs-directory-blogs.php

    Function: bp_blogs_directory_blogs_content()

    Line: 53 (aprox)

    Instructions:

    Just before the <form> tag add this code:

    <div class="widget">

    <?php if (function_exists('dynamic_sidebar')) dynamic_sidebar('center-column'); ?>

    </div>

    And that’s it.

    I don’t know if I just complicated myself but I couldn’t see any other way around this. Hope it helps someone.

  • The topic ‘HowTO: Add “center-column” widgets to the main BP page’ is closed to new replies.
Skip to toolbar