Cant remove Share This icons form Custom Page template
-
Hi. I have removed the share this icons and relocated the icons in my footer which has been working great. I used this code:
// Placing Sharing icons function jptweak_remove_share() { 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' );
But now I have created a custom page template and now the icons are appearing by the_content() on pages that utilize this template. How can I modify the above code to include removal of the icons on the custom template? Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cant remove Share This icons form Custom Page template’ is closed to new replies.