Add the following code to your WordPress theme’s function.php file, or a functionality plugin to reposition JetPack Social Sharing Buttons in Genesis.
// Display sharedaddy buttons
add_action( 'genesis_entry_footer', 'child_do_sharedaddy', 10 );
function child_do_sharedaddy(){
global $post;
// if sharing_display() does not exist, return
if( ! function_exists( 'sharing_display' ) )
return;
// get the sharedaddy links html
$sharedaddy_links = sharing_display();
// if sharing_display() does not return anything, return
if( empty( $sharedaddy_links ) )
return;
// create a template for the sharedaddy box content
$template = '<div class="sharedaddy-box">%s</div>';
// display the sharedaddy links within it's own box
$content = sprintf( $template, $sharedaddy_links );
// apply a filter for future adjustments
echo apply_filters( 'sharedaddy_box_content', $content, $template, $sharedaddy_links );
}
Share Your Two Cents