This topic has 1 reply, 2 voices, and was last updated 9 years by Radu.

  • Author
  • #72809
     Matthias
    Participant

    HI !

    When a user creates an articles, it appears in the buddypress feed. Above the features image is an extract of the article. How can I hide it ? I don’t want to have it in the feed.

    Thanks for your help

    Attachments:
    You must be logged in to view attached files.
    #72905
     Radu
    Moderator

    Hi,

    Try this snippet

    COPY CODE
    
    function bpfr_custom_length( $excerpt_length) {
    	$excerpt_length = '0'; // change value to your need	
    	return $excerpt_length;  
    	
    } 
    add_filter( 'bp_activity_excerpt_length', 'bpfr_custom_length', 10, 1);
    

    Add this code to your Kleo Child Theme ( wp-content/themes/kleo-child/functions.php )

    Let me know if it works

    Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?