Controlling Width of Facebook Like Button in sharedaddy module
-
I have a problem with FB like button displayed by Sharedaddy module from JETPACK. The Iframe is not large enough to properly display the number of likes, so the number is truncated after the second digit.
My solution is to change the with of the iframe from the “sharing-sources.php“, changing the value 6 with 20 (px). The script is overwritten with any new update, so I’m looking for other way to control the size of iframe (not sensible to updates)
return ‘<div class=”like_button”><iframe src=”‘.$url.'” scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:’.( $inner_w + 6 ).’px; height:21px;” allowTransparency=”true”></iframe></div>’;
return ‘<div class=”like_button”><iframe src=”‘.$url.'” scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:’.( $inner_w + 20 ).’px; height:21px;” allowTransparency=”true”></iframe></div>’;
- The topic ‘Controlling Width of Facebook Like Button in sharedaddy module’ is closed to new replies.