BuddyDev

Search

[Resolved] Read more link in activity feed

  • Participant
    Level: Master
    Posts: 279
    NikB on #14408

    I’d like to make the “Read more” link in the activity feed link to the full post itself, rather than expanding on the activity page.

    Any suggestions as to the best way to achieve this?

    With many thanks in advance.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2944
    Ravi on #14409

    Hello NikB,

    Thank you for posting. Please try the following code in “bp-custom.php” file.

    
    function buddydev_remove_ajax_read_more_activity_link( $excerpt, $text, $append_text ) {
    	$excerpt = str_replace( 'activity-read-more', 'excerpt-read-more', $excerpt );
    	return $excerpt;
    }
    
    add_filter( 'bp_activity_truncate_entry', 'buddydev_remove_ajax_read_more_activity_link', 10, 3 );
    

    Thank You
    Ravi

  • Participant
    Level: Master
    Posts: 279
    NikB on #14410

    @Ravi… you’re a star! That works like a dream…

    I thought there might be a relatively easy way but Google certainly wasn’t being much help 😉

    Thank you so much for the prompt attention, I really appreciate it.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2944
    Ravi on #14412

    Thank you @nikb for the kind words. I am glad that I could help.

    Regards
    Ravi

The topic ‘ [Resolved] Read more link in activity feed’ is closed to new replies.

This topic is: resolved