Support » Plugin: Twitter Widget Pro » Hide "Follow [USERNAME]" and Followers on Widget?

  • Resolved ChristinaHendriks


    Hello again,

    My client would like me to hide the ‘”Follow [USERNAME]” <-## Followers’ button on the Twitter Widget Pro. They would like it to only show the little bird icon instead. Is this possible for me to code? Or does it involve modifying the widget as a whole?

    Any thoughts are welcome, thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Aaron D. Campbell


    You can’t hide the word follow. You can hide the count and the username if you want. Here’s info about what parameters the follow link can use:

    You can add some of those parameters by adding code like this to another plugin or to your theme’s functions.php file:

    function range_hide_follower_count( $attributes ) {
    	if ( ! empty( $attributes['class'] ) && 'twitter-follow-button' == $attributes['class'] )
    		$attributes['data-show-count'] = 'false';
    	return $attributes;
    add_filter( 'widget_twitter_link_attributes', 'range_hide_follower_count' );

    You can add any of the attributes you find in that link

Viewing 1 replies (of 1 total)
  • The topic ‘Hide "Follow [USERNAME]" and Followers on Widget?’ is closed to new replies.