Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing my theme to work with BP 1.5-beta2

  • @enderandrew

    Member

    Here is my page.php template from my theme in Pastebin:

    http://pastebin.com/XALyDXMZ

    And I’m using BP 1.5-beta2, so here is an example of a template I need to fix, specifically activity/index.php

    http://pastebin.com/rhs3mUb7

    Could someone please show me what activity/index.php should look like for my theme, and then I can apply those changes to the other files?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @enderandrew

    Member

    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

    Participant

    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

    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

    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