Facebook like box widget not recognizing data-width attribute? Facebook like box widget not recognizing data-width attribute? wordpress wordpress

Facebook like box widget not recognizing data-width attribute?


Expanding on user2477225's answer, it might have problems with custom positioning that you set (relative or absolute somewhere on the page), so what I did was:

.fb_iframe_widget>span { width: 240px !important; }.fb-like-box iframe { width: 240px !important; }

Seems to be working so far.

Edit: For IE 8 (and lower), please use this instead:

.fb_iframe_widget span { width: 240px !important; }.fb-like-box iframe { width: 240px !important; }

I like to be as specific as possible in my selectors, but after checking this issue some more, I see no technical reason to use the > selector here.


i think we should tell fb to fix their dumb script, now fb like box must be at least 292 px in width.

They state clearly on https://developers.facebook.com/docs/reference/plugins/like-box/

The minimum supported plugin width is 292 pixels.


I fixed the width with a little CSS hack but it is only temporary. My hack is this:

.fb-like-box iframe {     width: your_width_in_px !important;}