Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Last active October 14, 2015 22:10
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 fernandiez/b6b6843343ae9966b326 to your computer and use it in GitHub Desktop.
Save fernandiez/b6b6843343ae9966b326 to your computer and use it in GitHub Desktop.
Adds Karmacrazy social button to Genesis Simple Share
<?php // remove this line
//* Adds Karmacrazy social button to Genesis Simple Share (f)
//* https://gist.github.com/srikat/787e8d8bad7ec06a40fe
add_action( 'genesis_entry_content', 'kcy_simple_share', 9 );
function kcy_simple_share() {
if ( ! function_exists('genesis_share_icon_output') ) {
return;
}
if ( is_single() ) {
genesis_share_icon_output( 'buttons', array( 'facebook', 'twitter', 'pinterest', 'googlePlus', 'linkedin' ) );
echo '<div class="kcy_karmacracy_widget_h_ID"></div><script defer="defer" src="http://rodney.karmacracy.com/widget-3.0/?id=ID&button=1&display=right&show-tooltip=0&medio-id=undefined"></script>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment