WordPress Santa Smiley!

So you noticed that cute, little guy at the end of my last post, did ya?


He was actually pretty easy to add to the standard smilies catalog in WordPress!

  1. Just save the image above and upload to /wp-includes/images/smilies/
  2. Then add a new line to the end of the array in /wp-includes/functions.php (assuming WordPress 3.0+; I believe you want /wp-includes/vars.php for earlier versions)
':|' => 'icon_neutral.gif',
';)' => 'icon_wink.gif',
':!:' => 'icon_exclaim.gif',
':?:' => 'icon_question.gif',
':santa:' => 'icon_santa.gif',

Now I should note that if you happen to be using a smilies plugin like I realized that I am here, you’ll likely need to do step #2 in the config file for that plugin instead. I’m using Smilies Themer, so the file I ended up updating was /wp-content/plugins/smilies-themer/default/package-config.php.

You’ll also probably notice that this particular icon is just a tad taller than the standard WordPress smilies, so it tends to throw off line heights if you’re using a default. I thought about scaling it down a bit to try to put it in line with the others, but you can just as easily put it on its own line and it saves you a trip to the Photoshop! Nonetheless, it seemed like a fun, little way to spruce up your WordPress blog around the holidays – enjoy…

:santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa: :santa:

Leave a Comment

Your email address will not be published.