• Resolved Jon Fergus

    (@jon-fergus)


    I see a few others having this issue, since the width option was removed in the latest update. Not sure if there are any solutions yet. Ours is a minor one, but still annoying. The width of our FB widget is now set at 283px (for no reason I can discover), while it needs to be set to 273px in order to fit properly in the sidebar (I’ve removed and re-added the widget, and no chance occurred). The height also now goes right to the edge of the widget area, instead of leaving a margin. Have a look here: https://www.universaltheosophy.com/

    Scroll down and you’ll see the FB Like Box. Below it is our Twitter Feed widget. See the issue with the width and margins. The FB Like Box should be the same as the Twitter. Haven’t found any way to accomplish this using css yet either.

    Any help would be much appreciated.

    https://www.ads-software.com/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We’ve indeed removed the width option from the Facebook widget, as Facebook’s new Page Plugin is built to adapt to the width of its parent container on page load, as explained here:
    https://developers.facebook.com/docs/plugins/page-plugin#adaptive-width

    So if you’d like to limit the size of the Page Plugin, you’ll need to set a width parameter for the parent element, as explained above.

    We’re also considering adding the width parameter option back, and you can follow our progress here:
    https://github.com/Automattic/jetpack/issues/2386

    Thread Starter Jon Fergus

    (@jon-fergus)

    There must be another issue here, because the FB auto-width completely ignores the parent element’s padding. See here:

    https://www.universaltheosophy.com/fblikebox.jpg

    You’ll see that the parent element has a padding all the way around (11px wide). The FB like box acknowledges the padding when setting the top-left corner of the widget, but then it ignores the padding when setting the auto-width (and apparently the height as well, as the padding at the bottom is also ignored). Nothing I do with css seems to fix this.

    I’m having the opposite problem. The like box is not expanding to fit the container which is set at 400px. I’ve tried the following CSS:

    .fb_iframe_widget {
    width: 400px;
    padding-left: 14px;
    }

    How can I get the likebox to expand to the full container width?

    Thanks!

    site: https://www.shannongianotti.com

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @jon @smgianotti You’ll need to add the width parameter to the parent element, not the Facebook Like Box itself.

    @jon In your case, this could work:

    .sidebar .widget {
    	width: 300px;
    }

    @smgianotti

    The LikeBox actually doesn’t look too bad on my end:
    https://i.wpne.ws/bztI

    If you want more control over the widget widget, you should be able to target .widget_facebook_likebox.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Facebook Like Box width issue’ is closed to new replies.