Simple Facebook Connect
[resolved] Dynamic fan box widget width (2 posts)

  1. sounddog
    Posted 4 years ago #

    Hi Otto,

    I've got a sidebar with the fan-box widget installed. By default the width is 320px on the page, however if the page resizes it would be great if the widget would resize along with it. I've tried adding the custom css however I don't know if it's that which is the problem or the iframe which is created having a set size rather than something like 'width: 100%;'

    Is it possible to achieve this using the widget?



  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 4 years ago #

    The actual fan box is rendered by Facebook's Javascript code. It creates an iframe in the DOM to show the like box. You might be able to detect resize and adjust that iframe via Javascript, but how to do that is outside of SFC itself.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic