WordPress.org

Support

Support » Plugins and Hacks » WPtouch Mobile Plugin » [Resolved] How WPTouch can work with Facebook Like button?

[Resolved] How WPTouch can work with Facebook Like button?

  • My website got the like button, by using the following code:

    <iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=button_count&show_faces=false&width=450&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”>
    </iframe>

    It seems that wpTouch can’t support it, what can I do? thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • This fixed the problem for me. Change the last width reference like this:

    ORIGINAL CODE:

      width:450px;

    FIX:

    width:auto;

    Plugin Author BraveNewCode Inc.

    @bravenewcode

    Thank you for sharing your solution. iFrames behave inconsistently on mobile devices in general but yes, flexible dimensions are preferable to fixed ones when it comes to mobile sites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How WPTouch can work with Facebook Like button?’ is closed to new replies.
Skip to toolbar