BuddyBoss Home – Web Support Forums Themes Boss. theme Remove Social Stuff

Viewing 8 posts - 1 through 8 (of 8 total)
  • Question

    #39780
    @chiefgeek

    I 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

    #39788

    Alyssa
    Participant
    @alyssa-buddyboss

    @chiefgeek try adding this to functions.php:
    remove_action("bp_after_profile_field_content","buddyboss_user_social_fields");

    #39795
    @chiefgeek

    Hmmm, that didn’t seem to work. Is is different for the “boss” theme?

    #39796
    @chiefgeek

    Hey @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' ); ?>
    
    
    #39801

    Alyssa
    Participant
    @alyssa-buddyboss

    @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' );
    #39820
    @chiefgeek

    Awesome, that worked!

    #42640
    @ignitionmktgny

    this was a great post – thanks

    #42742

    Alyssa
    Participant
    @alyssa-buddyboss

    Glad it helps 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘Remove Social Stuff’ is closed to new replies.