lmartins
10/28/2014 - 9:18 AM

Customize Jetpack's sharing buttons position with Genesis

Customize Jetpack's sharing buttons position with Genesis

function remove_jetpack_sharing_display() {
    remove_filter( 'the_content', 'sharing_display', 19 );
    remove_filter( 'the_excerpt', 'sharing_display', 19 );
}
add_action( 'init', 'remove_jetpack_sharing_display' );

function custom_hook_sharing_display() {
    if ( function_exists( 'sharing_display' ) ){
        $result = '<div class=“entry-sharing”>';
        $result .= sharing_display();
        $result .= '</div>';
        echo $result;
    }
}
add_action( 'genesis_after_content', 'custom_hook_sharing_display' );