Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress] Code from our blog post How to Move Jetpack Social Buttons with Genesis - https://zeropointdevelopment.com/how-to-move-jetpack-social-buttons-with-genesis/
/** Jetpack Share Buttons **/
function zpd_add_jetpack_share_buttons(){
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
if ( function_exists( 'sharing_display' ) ) {
echo sharing_display();
}
}
add_action( 'genesis_before_post_content', 'zps_add_jetpack_share_buttons' ); /* Old Genesis */
add_action( 'genesis_before_entry_content', 'zps_add_jetpack_share_buttons' ); /* HTML5 Genesis */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.