Skip to content

Instantly share code, notes, and snippets.

@NicBeltramelli
Created February 13, 2019 16:14
Show Gist options
  • Save NicBeltramelli/0e2a0bdf500f44d74fdb2586ff1215be to your computer and use it in GitHub Desktop.
Save NicBeltramelli/0e2a0bdf500f44d74fdb2586ff1215be to your computer and use it in GitHub Desktop.
Reposition jetpack sharing buttons below the title for Genesis framework
<?php
// Do NOT include the opening php tag.
/**
* Reposition jetpack sharing buttons below the title
*
* @author Nic Beltramelli
*
*/
add_action(
'genesis_entry_header', function () {
if ( function_exists( 'sharing_display' ) ) {
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
sharing_display( '', true );
}
}, 10
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment