WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got frustrated with the number of "Like" plugins available, so I went straight to Facebook for a direct implementation.

I want my like button to look like how how its displayed on Techcrunch (example: http://techcrunch.com/2011/03/09/report-paypals-express-checkout-helps-bump-sales-by-18-percent/) - Notice the Facebook Like button - The word like, then a box to the right with the "like count".

I've copied the code and modified it as follows:

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=80;&amp;action=like&amp;font&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:20px;" allowTransparency="true"></iframe>

The code above displays the "Like" button, but without the counter (I want it to display, even at zero).

I may be missing something simple - Any ideas?

share|improve this question
Short of using JS i don't think you can, the Facebook API determines what is rendered inside that iframe.. (it's not generated on the local server).. – t31os Mar 9 '11 at 22:54
Here's a good post for what you're trying to do stackoverflow.com/questions/7476603/… – user16894 Jun 8 '12 at 22:32

Unfortunately I do not think there is a way to do this. I believe I also read somewhere that modifying the Like button is against Facebook's Terms of Service, so I would suggest not trying to go that route.

Ultimately, Facebook decides what gets shown. You could set a background image under the like button with a little 0 poking out of the right side in the same style, that's the only thing I could think of to do.

share|improve this answer
Interesting idea! Thank you for that. – Jonathan Wold Jan 24 '12 at 15:20

The only way to I can think of to get it to display 0 likes is if it doesnt have any likes at all, other wise your SOL buddy.

share|improve this answer
The trouble is that when there are not any likes, it doesn't display zero :). Its just blank. I would like it to display zero when there are not any likes. – Jonathan Wold Oct 13 '11 at 21:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.