Support » Plugin: WPtouch Mobile Plugin » How WPTouch can work with Facebook Like button?

  • Resolved davidchan2011

    (@davidchan2011)


    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 ‘How WPTouch can work with Facebook Like button?’ is closed to new replies.