WordPress.org

Forums

WPtouch Mobile Plugin
[resolved] How WPTouch can work with Facebook Like button? (3 posts)

  1. davidchan2011
    Member
    Posted 4 years ago #

    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

  2. bwhurd
    Member
    Posted 4 years ago #

    This fixed the problem for me. Change the last width reference like this:

    ORIGINAL CODE:

      width:450px;

      FIX:

    width:auto;

  3. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags