开发者

Facebook Comments Plugin styling

开发者 https://www.devze.com 2023-04-09 23:25 出处:网络
I added the facebook comments plugin in my site, I wanted to add styling to the plugin according to my site style. The below code which I added in mysite.

I added the facebook comments plugin in my site, I wanted to add styling to the plugin according to my site style. The below code which I added in mysite.

<fb:comments href="<url>" num_posts="2" width="500"></fb:comments>

Please开发者_StackOverflow suggest me how to do this.


This is not possible to style in a custom form. This is because the comments are loaded within an iframe.

Facebook offers two color schemes for the plugins, a light and dark theme, but other than these that is all that is possible using fb:comments

<fb:comments href="<url>" num_posts="2" width="500" colorscheme="dark"></fb:comments>

or

<fb:comments href="<url>" num_posts="2" width="500" colorscheme="light"></fb:comments>


Not enough styling but if you are conscious about the responsiveness then you can use data-width="100%" instead of data-width="500" or '600'

0

精彩评论

暂无评论...
验证码 换一张
取 消