• Skip to main content
  • Skip to primary sidebar

Purely Supplemental Hub

Just The Tech, News, and Info We Deem To Post

  • WordPress
  • Marketing
  • Business
  • Computing
  • Security
  • Publicity
  • Resources
  • WHATEVS

Reposition JetPack Social Sharing Buttons in Genesis

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 );
     
}

Filed Under: Code Snippets Tagged With: Genesis Child Theme, Genesis Framework, Jetpack, Social Networking, Social Sharing

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

© Copyright Jack Alltrade & Associates 2026 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates