Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • @mfalk75

    Participant

    @mairaj Thanks for your solution, seems to be working great. One thing though, I noticed my group forum topics still don’t display. The seo meta title is just the name of the group forum for individual topics. Thant can’t be good.

    @mfalk75

    Participant

    @danbp do I have to call this a different way in my members-loop.php?

    @mfalk75

    Participant

    OK, so this is the code I have put into my child theme:

    // COVER IMAGES
    
    // Add css style for background cover images
    
    function bp_legacy_theme_cover_image_css( $settings = array() ) {
    
    $theme_handle = 'bp-child-css';
    
    $settings['theme_handle'] = $theme_handle;
    
    $settings['callback'] = 'bp_legacy_theme_cover_image';
    
    return $settings;
    
    }
    
    function bp_legacy_theme_cover_image( $params = array() ) {
    
    if ( empty( $params ) ) {
    
    return;
    
    }
    
    return '
    
    #buddypress #header-cover-image {
    
    height: ' . $params["height"] . 'px;
    
    background-image: url(' . $params['cover_image'] . ');
    
    }
    
    ';
    
    }
    
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'bp_legacy_theme_cover_image_css', 10, 1 );
    
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'bp_legacy_theme_cover_image_css', 10, 1 );

    I get this error: Fatal error: Cannot redeclare bp_legacy_theme_cover_image() (previously declared in /home3/xxx/public_html/mysite.com/wp-content/themes/valenti-child/functions.php:49) in /home3/xxx/public_html/mysite.com/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php on line 1928

    Could someone point me in the right direction,…this is driving me nuts!

    @mfalk75

    Participant

    hmm, thanks, I don’t get it either. I am editing the file in my child theme at this location: mysite.com/buddypress/members/members-loop.php It’s definitely editing the website as if I delete this part then the last update from a member does not appear. Your code makes the status update appear but it just don’t limit it. I even tried changing 50 to 10 and still long updates. Thanks for your help. Not sure what to do now.

    @mfalk75

    Participant

    Thank you for trying to help. Nope, it does show the update but it’s not shortened at all. Any other ideas?

    Thanks,
    Michael

    @mfalk75

    Participant

    Hey guys, I’m having same issue but I can’t seem to figure it out. I’ve tried messing with the code and implementing it into my child themes function.php but no luck. Can someone give me a sample of code I can try. @bertl11 how did you get it working?

    @mfalk75

    Participant

    I’m having same issue, did you ever figure this out @Florent. I’m not great with code but I believe the code below must somehow be incorporated into the function you have above. Could someone help us out 🙂

    /* Cover image – Do not forget this part */
    #buddypress #header-cover-image {
    height: ‘ . $params[“height”] . ‘px;
    background-image: url(‘ . $params[‘cover_image’] . ‘);
    }

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