EA Share Count – Change Icons

<?php
/**
* SharedCount Icons
*
*/
function be_sharedcount_icons( $link ) {
if( in_array( $link['type'], array( 'facebook', 'facebook_likes', 'facebook_shares' ) ) )
$link['icon'] = 'icon-facebook';
if( 'twitter' == $link['type'] ) {
$link['icon'] = 'icon-twitter';
$link['count'] = 'Tweet';
}
if( 'google' == $link['type'] )
$link['icon'] = 'icon-googleplus';
if( 'print' == $link['type'] ) {
$link['icon'] = 'icon-print';
$link['count'] = 'Print';
}
return $link;
}
add_filter( 'ea_share_count_link', 'be_sharedcount_icons' );
view raw functions.php hosted with ❤ by GitHub

EA Share Count

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk