Facebook like box widget not recognizing data-width attribute?

后端 未结 9 2509
醉话见心
醉话见心 2021-02-19 07:26

I just noticed today that the data-width attribute for the Facebook Like Box widget does not appear to be working. It looks like it is reverting to the default width. An example

9条回答
  •  不要未来只要你来
    2021-02-19 08:15

    Here is what I used to fix it, this is not the exact same since I don't show faces, but just adapt it to your code, the important part is the div #fb-like-container that I added, it lets me use css selectors to change required code.

    CSS:

    
    

    HTML (data-width is not taken into account):

提交回复
热议问题