Reputation: 41
Trying to put the Dark colored Like Box on my website, everything seems to function properly but the color looks like its the light scheme, what's the problem?
Here's the code I used:
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=360&height=258&colorscheme=dark&show_faces=true&border_color&stream=false&header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:360px; height:258px;" allowTransparency="true"></iframe>
I tried both the iframe and html5 codes.
Another problem is sometimes only a couple faces show in the box and other times it displays max faces.
Upvotes: 4
Views: 13263
Reputation: 344
I know I'm late to this thread, but at the present time the dark color scheme appears broken so perhaps others might end up here looking for a solution.
Jimmy Sawczuk's example above still works but that is because he isn't showing the 'stream'. If you set the 'stream' property to true you can see a big problem or two.
<div>
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=360&height=258&colorscheme=dark&show_faces=true&border_color&stream=true&header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:360px; height:258px;" allowTransparency="true"></iframe>
</div>
Since the markup is in the iframe and I've run out of properties to customize I'm wondering what can be done?
Upvotes: 0
Reputation: 886
I seem to get a similar error.. I'm using the 'like' and the 'login' plugin.. when I'm logged everything is fine.. when I'm not, my 'like' button is light...
issue: 187studio.ch (top of the page)
Upvotes: 0
Reputation: 253
The developer button wizard wasn't working for me (using Chrome). Not sure why, but I found the data element that changes the colorscheme from light to dark. You can manually add the following and it will work just fine.
data-colorscheme="dark"
Example:
<div class="fb-like" data-href="http://www.nike.com" data-send="false" data-colorscheme="dark" data-width="450" data-show-faces="false"></div>
Upvotes: 2
Reputation: 13614
The dark color scheme is rendering properly, but by design it doesn't have a background (it's transparent). Put it in front of a div
with the background you want, as demonstrated here.
Upvotes: 6