Skip to content

Instantly share code, notes, and snippets.

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 gregoirenoyelle/1a13e4e0bd70012aab37976c8725a68d to your computer and use it in GitHub Desktop.
Save gregoirenoyelle/1a13e4e0bd70012aab37976c8725a68d to your computer and use it in GitHub Desktop.
Move Jetpack Share for Genesis
<?php
// Move Jetpack Share
// Add to functions.php
// Hook in Genesis Meta
add_action( 'genesis_meta', 'vft_filtre_partage' );
function vft_filtre_partage() {
// Remove default sharing
remove_filter( 'the_excerpt', 'sharing_display', 19 );
remove_filter( 'the_content', 'sharing_display', 19 );
// Add sharing at the end of the post
add_action( 'genesis_after_entry_content', 'vft_change_place_partage' );
function vft_change_place_partage(){
if ( function_exists( 'sharing_display' ) ) {
echo sharing_display();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment