• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

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

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / Reposition JetPack Social Sharing Buttons in Genesis

Reposition JetPack Social Sharing Buttons in Genesis

Genesis Theme Framework Code Snippets

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

by Jack Alltrade on February 5, 2018

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

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

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