Which code do I have to modify in order to have a custom text above the post field of the activity page? Pls. see screenshot for clarification => https://i.postimg.cc/Ss5Q8gj9/buddypress-activity.jpg
thank you for your help!Thank you for the question. There are multiple ways to do it. You can either use the action hook or do a template override.
Based on your template pack( I am assuming Nouveau), you can copy the post-form.php from wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/activity directory to your theme/buddypress/activity/post-form.php and add the text as needed.
Regards
BrajeshHi Brajesh,
I tried this shortcode in my functions.php (in Child Theme folder) but somehow I cannot get show up my inserted shortcode above the activity stream. What am I doing wrong?`// Add shortcode at the top of the page if page is activity
add_action(‘kleo_before_main_content’, ‘add_myshort_activity_page_sqk’);
function add_myshort_activity_page_sqk()
{
if (is_page(‘activity’)) {
echo do_shortcode(‘[buddypressglobalsearch]<br>’);
}
}
The topic ‘ [Resolved] Custom Text above post form on activity page’ is closed to new replies.