Reply To: [Resolved] hiding “whats-new-form” in member activity but NOT in Groups
hi @5high,
as @hnla mentionned it, CSS is not the correct way to ‘remove’ something, because it’s not removed from source code, but only hidden to visitors.
Here is a solution to remove what’s new form from the activity page, but let it live for groups.
1) copy bp-templates/bp-legacy/buddypress/activity/index.php
to the child-theme, to get /child-theme/buddypress/activity/index.php
2) open the copied file and remove line 7 to 11
<?php if ( is_user_logged_in() ) : ?>
<?php bp_get_template_part( 'activity/post-form' ); ?>
<?php endif; ?>
To remove the form from members single activities
3) copy bp-templates/bp-legacy/buddypress/members/single/activity.php,
to the child-theme, to get /child-theme/buddypress/members/single/activity.php
4) remove only line 35
bp_get_template_part( 'activity/post-form' );
Hope this help.