BuddyDev

Search

Edit activity page

  • Participant
    Alain on #28580

    Hello,

    I’d like to add an introduction text at the beginning of the activity page of BuddyPress.
    Simply editing the page with Gutenberg doesn’t works.
    The plugin Buddypress Activity shortcode doesn’t allow all functions of the original page.
    Is there a (simple) solution ?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2459
    Ravi on #28582

    Hello Alain,

    Thank you for posting. Try the following code.

    
    add_action( 'bp_before_directory_activity_content', function () {
    	// Your content goes here.
    	echo 'Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum';
    } );
    

    Regards
    RAvi

You must be logged in to reply to this topic.

This topic is: not resolved