[Resolved] Remove jetpack sharing buttons on buddypress generated pages
-
I have a problem with the Jetpack sharing buttons in combination with buddypress.
Obviously they don’t make much sense there anyways, it’s not like I want to share my settings page or sth similar, so I am looking for a way to get rid of the sharing buttons on these pages.
I tried hiding them via custom css, but with no success (I can either hide them globally or not at all, since I can’t find a post-id to use it only there). So I searched the web and found this code:function jptweak_remove_share() { if ( bp_is_user_profile() ) { remove_filter( 'the_content', 'sharing_display',19 ); remove_filter( 'the_excerpt', 'sharing_display',19 ); if ( class_exists( 'Jetpack_Likes' ) ) { remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); } } } add_action( 'loop_start', 'jptweak_remove_share' );
This disabled the sharing buttons when viewing the user profile. I just wonder what to replace the “bp_is_user_profile()” with to get rid of the sharing buttons on the activity site, the user settings page etc.
Hope you can help me. Thank you in advance
- The topic ‘[Resolved] Remove jetpack sharing buttons on buddypress generated pages’ is closed to new replies.