简体   繁体   中英

Changing the text colour of Facebook Comment Box Plugin

I am using the facebook comment plugin on my site.

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments  style="background-color:#131514;" href="http://kablammo.com.au/news_article.php?&amp;newsID='.$i.'" num_posts="3"  width="500"  ></fb:comments>

I saw in a post that you could effect the backgound colour by putting in:

style="background-color:#131514;"

However to get it to work you have to remove the colourscheme colorscheme="dark" and in doing so the comment text returns to black.

How can I change the comment text colour?

I tried putting in color:#FFF but no such luck.

Thanks Guys.

You need to create an external stylesheet and reference that in your <fb:comments> call.

Eg: <fb:comments numposts="4" title="My Blog Comments" css="http://www.yourwebsite.com/css/comments.css?1234" simple="1"></fb:comments>

Please read the following for reference:

Always search for answers before asking. A simple search for "facebook comment plugin custom css" yields numerous tutorials and forum posts that answer your question. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM