How To: Customize your own style in showing the number of comments
Posted in: WordPress
It’s not hard to make your theme unique. Probably some of you are using a free WordPress theme and somehow you almost have an identical blog with a co-blogger. Changing the colors, fonts, header can do the trick to tell your readers this is different from the others. Here one way to tweak your blog in your own style by changing the way your number comments appear.
This tutorial is not limited for those bloggers who uses free themes it’s also for those bloggers who have a design of their own theme. You might get bored seeing your blog with 0 comments, 1 comment, 2 or more comments and would like to customize them. This will also encourage your readers to leave a comment. Well if you don’t get the picture of what I’m saying just look at the image below to understand.

Below are some samples I found in the blogosphere.

- used to be from carlocab.com. It changed after replacing a new theme.

- from shoemoney.com

- from johncow.com
You want to learn how they did it?
With these 3 easy steps you can come-up with your own style.
1. Open your index.php and/or single.php.
2. Edit each page and look for the lines that read.
< ?php comments_popup_link('No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
3. Change the way you want them to appear in your page. Style your own comments by changing only the one on red marks.
< ?php comments_popup_link('Leave a comment »’, ‘1 Comment - Want to Join Him? »’, ‘% Comments - Want to Join Them? »’); ?>
How about you? What’s your style?
Care to share?














































Comments
RSS feed | Trackback URI
1 Comment »
Trackback responses to this post
Leave a Comment, Win a Friend!