JiveDig
11/8/2013 - 8:56 PM

Remove default location of Jetpack's sharing buttons - Sharedaddy

Remove default location of Jetpack's sharing buttons - Sharedaddy

// Remove default location of Jetpack sharing - Sharedaddy
// @link http://www.rfmeier.net/moving-jetpack-sharedaddy-links-outside-the-content-with-genesis/
// Display in template via:  if( function_exists( 'sharing_display' ) ) { echo sharing_display(); }
add_action( 'init', 'custom_init', 11 );
function custom_init(){
  
	// if sharing_display() function does not exist, return
	if( ! function_exists( 'sharing_display' ) )
		return;
	
	// remove the callback sharing_display() for the 'the_content' filter.
	remove_filter( 'the_content', 'sharing_display', 19 );
	
}