Hi,
I’d like to move the JetPack social share bar to below the Read More buttons on the home page of my staging site here: http://offsvngsgrp.staging.wpengine.com/
I’ve done the following already:
- Installed the Sparkling Child Theme
- Copied over some of the Sparkling Parent Theme settings to match
Now, I see the new functions.php page in the editor. I will add this code to functions.php:
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' );
JetPack says, add this code to the page template file:
if ( function_exists( 'sharing_display' ) ) {
sharing_display( '', true );
}
if ( class_exists( 'Jetpack_Likes' ) ) {
$custom_likes = new Jetpack_Likes;
echo $custom_likes->post_likes( '' );
}
Which templates and where do I add this code? Do they need to be wrapped in a p tag or a div tag?