WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Controlling Width of Facebook Like Button in sharedaddy module (5 posts)

  1. thinkero
    Member
    Posted 7 months ago #

    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>';

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    Do you, by any chance, use Jetpack in a foreign language? I'm trying to reproduce the issue on a test site, without success. Is it possible that the Like button doesn't mention "Like", but something different on your site?

  3. thinkero
    Member
    Posted 7 months ago #

    Yes, the Like button is translated in Romanian. The solution to expand the witdh with 20px instead of 6px is working for me. But I have to apply this change everytime I update the pluggin.

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    Thanks for the extra details. I took note of the bug here, and we'll get this fixed in a future Jetpack update.

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    The problem is now fixed. The change will be included in the next Jetpack release.

Reply

You must log in to post.

About this Plugin

About this Topic