BuddyDev

Search

[Resolved] Page header images issues in CB

  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #35476

    OK, I’m game…

  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #35498

    I’m still waiting for the assistance with that we had hoped to cover yesterday.

    Janet

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #35510

    Hi Janet,
    My apology for not posting the code yesterday. I tried a simple filter today which did not work. I am looking at it and will be providing the solutions sometimes today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #35519

    Hi Janet,
    Please put this code either in bp-custom.php or in your child theme’s functions.php

    
    
    /**
     * Force group activity to only list updates.
     */
    add_filter( 'bp_after_has_activities_parse_args', function ( $args ) {
    
    	if ( ! bp_is_group() ) {
    		return $args;
    	}
    
    	$args['action'] = 'activity_update';
    
    	return $args;
    } );
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #35524

    Great news!
    This seems to have worked well.

    Thanks,

    Janet

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #35533

    Hi Janet,
    Thank you for the reply.
    I am glad it worked.

    Regards
    Brajesh

The topic ‘ [Resolved] Page header images issues in CB’ is closed to new replies.

This topic is: resolved