Skip to content

Instantly share code, notes, and snippets.

@mjangda
Created November 10, 2012 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjangda/4049138 to your computer and use it in GitHub Desktop.
Save mjangda/4049138 to your computer and use it in GitHub Desktop.
Add Jetpack share buttons to the top of the content
<?php
add_filter( 'the_content', 'x_add_sharing_to_content_top' );
function x_add_sharing_to_content_top( $content ) {
if ( function_exists( 'sharing_display') )
$content = sharing_display() . $content;
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment