Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 1.2 – bp-default -> child theme one -> grandchild theme one

  • Avatar of mkels
    mkels
    Participant

    @mkels

    hi

    i’m using bp 1.2 and wpmu 2.9.1.1

    not quite sure if this possible..been looking around but still did not find a way..

    i’m building a child theme from bp-default…for more variation of the first child theme..is there

    a way to build a grandchild theme based on first child theme..

    get_stylesheet_directory()

    get_stylesheet_directory_uri()

    include (STYLESHEETPATH . '/SOME.PHP');

    grand child theme cannot inherit function or template from first child theme parent (bp-default)

    sample:

    bp-default had function hitme()

    child theme can inherit hitme() —- Template: bp-default (style.css)

    grandchild theme cannot inherit hitme() — Template: child theme one (style.css)

    i know we can always copy the function hitme() over to grandchild functions.php but i would prefer inherit method:)

    any child theme expert want to chip in or share some thought…feel free:)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of MrMaz
    MrMaz
    Participant

    @mrmaz

    I am pretty sure that WP does not support this.

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    This is not possible.. If you want to add new functions simply make it a new child theme and if you want to switch looks integrate a style switches in the theme backend or frontend :)

    Avatar of Ron Rennick
    Ron Rennick
    Participant

    @wpmuguru

    The WordPress theme system loads all template files from either STYLESHEETPATH or TEMPLATEPATH locations.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    Avatar of mkels
    mkels
    Participant

    @mkels

    ahhh..i thought so..

    i was thinking of using absolute path in grandchild theme functions.php..inside functions.php are

    include (BP_PLUGIN_URL . ‘/buddypress/bp-themes/bp-default/functions.php’);

    include(ABSPATH . ‘/wp-content/themes/child-theme-one/functions.php’);

    <!– start grandchild theme extra function –>

    adding some filter to function below to point to get_option(‘template’);

    get_stylesheet_directory()

    get_stylesheet_directory_uri()

    all works well…but when dealing with define STYLESHEEPATH and TEMPLATEPATH.

    i can’t add filter or apply filter since it is a define function and definately cannot redefine.

    that’s where i know i hit rock bottom:)..and pull the white flag

    the only solution will be

    bp-default -> child-theme-one & child theme two with extra customize..so there 2 child theme with bp-default as parent..well this is doable in the first place:)

    anyway..thanks for the input guys..cheers

    Avatar of mkels
    mkels
    Participant

    @mkels

    have you tried http://wordpress.org/extend/plugins/bp-template-pack/

    yes..but it also limited to child theme only..not 2 level grandchild theme..well i think

    you can’t expect much since even WP did not support grandchild theme yet..

    thx

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

You must be logged in to reply to this topic.