A simple way to make your comments stand out on your WordPress.com blog

If you’ve just recently bought the CSS Upgrade for your WordPress.com, there’s a pretty simple way to make your own comments stand out from the others, so that people can easily see where you’ve added to the comment conversation. I’m using the Sandbox theme on my blog here, and it’s through this theme that I added a bit of text after my name in the comments.

To do so, simply add this to your CSS:

.commentauthor-(YOUR-WORDPRESS.COM-USERNAME) .comment-author:after {
content:”… System 13 Blogger” !important;
font-size:70% !important;
}

Obviously, you’ll want to replace YOUR-WORDPRESS.COM-USERNAME with your username that you login with. So, if your username is bob, put:

.commentauthor-bob .comment-author:after {
content:”… System 13 Blogger” !important;
font-size:70% !important;
}

The way this CSS class basically works is that it uses the pseudo ‘after’ element. What this does is add to the page whatever you put for the ‘content’ attribute. As you can see, my CSS adds “… System 13 Blogger” after my name, in the comments. You can make it say whatever you want of course. Furthermore, if you want text to appear before your username, simply change :after (in the CSS selector) to :before.

You can of course also use this little CSS trick to add text to other areas of your design. It’s a nifty way to get around the “no editing HTML” security feature that WordPress.com has right now.

If you want a more graphical difference between comments, you can also customize the look of your comment posts by using a different background image for it.

Technorati Tags: , ,

Comments 4

  1. bt wrote:

    That’s cool. What does it look like?
    P.S. Where did you get that Aksimet badge?

    Posted 28 Aug 2006 at 7:37 pm
  2. Josh wrote:

    Like this (look above).

    The Akismet thingy is one of the Sidebar widgets available via the Sidebar Widgets options.

    Posted 28 Aug 2006 at 8:18 pm
  3. Robert wrote:

    Nice tip.

    Feeling lucky or sad to only have 5 spam comments yet? :)

    Posted 01 Sep 2006 at 1:22 am
  4. Josh wrote:

    Feeling lucky, actually. :) I’m not sure what’s up. I’ve had quite a few hits, and am getting a decent amount of traffic, but the spam comments just don’t seem to be coming.

    And, 3 of those 5 were actually mishits on Akismet’s part.

    Posted 01 Sep 2006 at 9:56 am

Post a Comment

Your email is never published nor shared. Required fields are marked *