If your BP theme or bp-default child theme doesn’t have one yet, copy over https://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-themes/bp-default/groups/single/activity.php to your theme folder following the directory structure, i.e. yourthemefolder/groups/single/
Open up activity.php file and delete the following lines:
`
`
Save.
Hi @mercime,
I’m trying to this again but on another blog. I can’t see the code in your previous post.
Could you repost the code I need to delete?
Thank you
change this:
<?php bp_get_template_part( 'activity/post-form' ); ?>
to this:
<?php //bp_get_template_part( 'activity/post-form' ); ?>
or just delete this:
<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
<?php bp_get_template_part( 'activity/post-form' ); ?>
<?php endif; ?>
@shanebp Thank you.
I could not find the first code but by delete the second code it work.
However on the Activity page in the status update I can still select a group in the Post in dropdown…
Hi..
I’m using default theme and deleted that code, but still, showing status update form..
What’s wrong, is there anything do I have to do?
Code is:
<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
<?php bp_get_template_part( 'activity/post-form' ); ?>
<?php endif; ?>
Did you remove it from this file https://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-themes/bp-default/groups/single/activity.php
I hope you’re using a child theme of the BP Default theme instead of making those changes on that theme in your server. Otherwise, your changes will be overwritten when BP is updated.
Yes, I deleted codes from activity theme, and I don’t use child theme..
@sakarya Just to be clear, you’re removing the status update form from the group’s activity, so that should work. Have you cleared cache? Or were you trying to remove the status update form everywhere?
I can only say that the best practice is to create a child theme.