Skip to content

Instantly share code, notes, and snippets.

@laflier
Created July 1, 2014 12:41
Show Gist options
  • Save laflier/6dbba74fcf3ac821c9f7 to your computer and use it in GitHub Desktop.
Save laflier/6dbba74fcf3ac821c9f7 to your computer and use it in GitHub Desktop.
Function for Genesis to display AddThis Sharing at Hook Location
add_action( 'COPY HOOK HERE', 'custom_addthis_share_buttons', 15 );
// See http://support.addthis.com/customer/portal/articles/381238-addthis-toolbox
// See also http://wpsites.net/best-plugins/addthis-social-share-follow-buttons-for-wordpress/
function custom_addthis_share_buttons() {
echo '<div class="addthis_toolbox addthis_default_style">';
echo '<a class="addthis_button_preferred_1"></a>';
echo '<a class="addthis_button_preferred_2"></a>';
echo '<a class="addthis_button_preferred_3"></a>';
echo '<a class="addthis_button_preferred_4"></a>';
echo '<a class="addthis_button_compact"></a>';
echo '<a class="addthis_counter addthis_bubble_style"><a>';
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment