BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Code to remove certain activity types from activity feed
Tagged: activity feed
- This topic has 7 replies, 4 contibutors, and was last updated 8 years, 7 months ago by Carly.
Question
March 10, 2016 at 8:25 pm #62479@costyclanI want to amend my activity feed and have added the code from this link;
https://gist.github.com/slaFFik/044cb43c0871e48cf341I also want to remove ‘new groups’ and ‘group memberships’ do you know the code to add to do this please?
Answers
March 18, 2016 at 12:53 pm #63884@
AnonymousHi @costyclan
function bp_activity_dont_save( $activity_object ) { $exclude = array( 'updated_profile', 'new_member', 'new_avatar', 'friendship_created', 'joined_group' ); // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function if( in_array( $activity_object->type, $exclude ) ) { $activity_object->type = false; } } add_action('bp_activity_before_save', 'bp_activity_dont_save', 10, 1 );
You can add those codes inside child theme functions.php
Regards
Varun DubeyMarch 23, 2016 at 8:04 pm #64946@costyclan@vapvarun can I remove this drop down filter entirely?
March 23, 2016 at 8:06 pm #64947@costyclanI’d also like to remove the sort drop down from members page (see attached).
March 24, 2016 at 5:53 am #64991@alyssa-buddyboss
AlyssaParticipantHi @costyclan,
You can add following css line of code in
style.css
of your child theme. Or go toDashborad -> BuddyBoss -> OneSocial Theme -> Custom Codes -> CSS
and paste it.#buddypress #members-directory-form #members-order-select { display: none; }
Hope this helps you.
Thanks
March 30, 2016 at 12:11 am #65950@costyclanthank you @sagar
Could you also please provide code to remove drop down from ativity feed on users ‘Wall’
(see attached)March 30, 2016 at 12:19 am #65955@
AnonymousHi @costyclan,
Please can add following css:
#activity-filter-select.last { display: none !important; }
Regards
March 30, 2016 at 6:25 pm #66152@costyclanthank you @pallavi
- The question ‘Code to remove certain activity types from activity feed’ is closed to new replies.