Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeveloperWil/82d98dde168643af3098e9172d63806c to your computer and use it in GitHub Desktop.
Save DeveloperWil/82d98dde168643af3098e9172d63806c to your computer and use it in GitHub Desktop.
[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