Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing my theme to work with BP 1.5-beta2

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

  • enderandrew
    Member

    @enderandrew

    To clarify, I’ve seen the documentation here:

    https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/

    But my theme template is fairly complex, and I’m not sure where to begin. I’d really appreciate some help.


    @mercime
    Keymaster

    @mercime

    In activity/index.php – at the top replace
    `

    `

    with
    `<?php
    /**
    * @package WordPress
    * @subpackage Clockstone_Theme_1.1.1
    */
    get_header();
    $page_layout = get_post_meta(get_the_ID(), ‘page_layout’, true);
    if (!$page_layout){ $page_layout = ‘sidebar_bg’; }
    ?>

    <?php
    if ($page_layout == ‘sidebar_bg’){
    echo ‘

    ‘;
    } elseif ($page_layout == ‘sidebar_bg sidebar_left’){
    echo ‘

    ‘;
    } else {
    echo ‘

    ‘;
    }
    ?>`

    At the bottom of activity/index.php, replace
    `

    `

    with
    `

    `

    Let’s see how that goes :-)


    enderandrew
    Member

    @enderandrew

    Thanks for the help, but sadly the BP pages are still appearing as a single column, with the sidebar below the content. Here is an example:

    http://nighthawksnation.org/members/activity/


    enderandrew
    Member

    @enderandrew

    I can’t my above post (edit always lead me to a 404 currently).

    I just had a cached page. When I cleared cache, I now have a two-column layout. But I had to change:

    to:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing my theme to work with BP 1.5-beta2’ is closed to new replies.
Skip to toolbar