Skip to content

Instantly share code, notes, and snippets.

@zeropointdevelopment
Created December 27, 2013 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zeropointdevelopment/8142626 to your computer and use it in GitHub Desktop.
Save zeropointdevelopment/8142626 to your computer and use it in GitHub Desktop.
[WordPress] Code from our blog post How to Move Jetpack Social Buttons with Genesis - http://www.limecanvas.com/how-to-move-jetpack-social-buttons-with-genesis/
/** Jetpack Share Buttons **/
function lc_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', 'lc_add_jetpack_share_buttons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment