Let Your WordPress Smilies Smile

I love smilies. I mean, just take a look at these two happy fellows.

They look pretty happy, right? I think they’d look a lot happier if they didn’t have the same background color and padding as the rest of the images in my theme though. Don’t you? Make sure you’re adding something like the following to your theme stylesheet somewhere after your main image styles. This is a good start for resetting the existing image styles you might have.

img.wp-smiley {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
}

Do that in your WordPress themes and you’re all set. :)

14 thoughts on “Let Your WordPress Smilies Smile

  1. Great trick to make transparent smilies!
    I had to think about coloring them all with my background (I`m new to wordpress), but this tip saved me alot of troubles, i appreciate it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s