BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Remove Social Stuff
- This topic has 7 replies, 3 contibutors, and was last updated 9 years, 4 months ago by Alyssa.
Question
May 4, 2015 at 5:28 pm #39780@chiefgeekI am sure I could figure this out, but I was hoping someone could tell me quickly how to remove all that social stuff from the base profile. I may want to add it later in a different way, but for now it is kinda extra stuff getting in my way.
Answers
May 4, 2015 at 6:44 pm #39788@alyssa-buddyboss
AlyssaParticipant@chiefgeek try adding this to functions.php:
remove_action("bp_after_profile_field_content","buddyboss_user_social_fields");
May 5, 2015 at 6:29 am #39795@chiefgeekHmmm, that didn’t seem to work. Is is different for the “boss” theme?
May 5, 2015 at 6:44 am #39796@chiefgeekHey @tjchester
So I went into the profile loop and commented out several do_actions and noticed the social links disappear… now I know the appropriate way to do this would be to remove the action hooks in the functions.php file and I understand it is important to hook into the right area…. but I am relatively new with hooks and their actions and filters. I am still wrapping my head around it a bit.
Where do I find what these things do? I guess by that I mean… where are the tags for the hook located? Where do I “hook” into and where is the associated action?
Here is the code I commented out below… where do I see what these “tags” do? Where is the do_action ‘bp_profile_field_item’ listed? Sorry for my newish questions. I used to program a while back and I’m getting back into it. Any help is much appreciated.
<?php //do_action( 'bp_profile_field_item' ); ?> <?php endwhile; ?> </table> </div> <?php //do_action( 'bp_after_profile_field_content' ); ?> <?php endif; ?> <?php endwhile; ?> <?php //do_action( 'bp_profile_field_buttons' ); ?> <?php endif; ?> <?php //do_action( 'bp_after_profile_loop_content' ); ?>
May 5, 2015 at 9:26 am #39801@alyssa-buddyboss
AlyssaParticipant@chiefgeek I would not recommend commenting actions as it may break other plugins, here is confirmed working code to remove social:
function bb_remove_social() { remove_action('bp_after_profile_field_content','buddyboss_user_social_fields'); } add_action( 'bp_init' , 'bb_remove_social' );
May 5, 2015 at 3:37 pm #39820@chiefgeekAwesome, that worked!
July 14, 2015 at 1:32 pm #42640@ignitionmktgnythis was a great post – thanks
July 15, 2015 at 6:02 pm #42742@alyssa-buddyboss
AlyssaParticipantGlad it helps 🙂
- The question ‘Remove Social Stuff’ is closed to new replies.