Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • mkels
    Participant

    @mkels

    have you tried https://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


    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


    mkels
    Participant

    @mkels

    function remove_header_support() {

    remove_action( 'init', 'bp_dtheme_add_custom_header_support' );

    }

    add_action( 'init', 'remove_header_support', 9 );

    this works!…thanks guys and MrMaz


    mkels
    Participant

    @mkels

    thanks for the response guys:)

    i see previous trac log had this

    Allow child themes to completely remove custom image header settings in bp-default by using remove_action( 'template_redirect', 'bp_dtheme_add_custom_header_support' ); in their functions.php file.

    maybe the remove_action() on this work…

    haven’t tried it yet.


    mkels
    Participant

    @mkels

    <b>Fatal error</b>: Call to undefined function bp_get_friend_total_for_member() in <b>/home/poolie/plazaa.de/wp-content/themes/plazaabp/members/single/member-header.php</b> on line <b>15</b>

    also found out this error.

    i see its on fix road already


    mkels
    Participant

    @mkels

    i think i found a solution to this problem.

    since add_custom_image_header already declared in parent theme, i just need to

    add this line code to use my own setting of custom image header and good news is

    there no double image header and header menu.

    ///////////////////////////////////////////////////////////////

    /// inherit parent theme header to child theme

    //////////////////////////////////////////////////////////////

    define('HEADER_TEXTCOLOR', '');

    define('HEADER_IMAGE_WIDTH', 988); //width is differ from parent

    define('HEADER_IMAGE_HEIGHT', 125); //height is differ from parent

    define('NO_HEADER_TEXT', true ); //turn this off in child theme

    function my_admin_header_style() { ?>

    <style type="text/css">

    #headimg { height: <?php echo HEADER_IMAGE_HEIGHT; ?>px !important; background: #fff url(<?php header_image() ?>) repeat-x; }

    #headimg { height: <?php echo HEADER_IMAGE_HEIGHT; ?>px !important; width: <?php echo HEADER_IMAGE_WIDTH; ?>px !important; }

    #headimg h1, #headimg #desc { display: none !important; }

    </style>

    <?php }

    // no need to recalled add_custom_image_header()..just add action to style it

    add_action('admin_head', 'my_admin_header_style');

    and now only 1 custom header admin menu and 1 header upload form.

    thanks for chipping in:)

    cheers

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar