Custom smilies
Be careful when editing source codes! Go to the /wp-includes folder, look for functions.php and make a backup. Find this line:
$wpsmiliestrans = array(
Below this line, you will find something like:
':smile:' => 'icon_smile.gif',
etc. (There are several lines for all the smileys) Before the arrow (=>) is the text to be converted to smiley and after the arrow is the smiley file. Replace them by your own smileys and don't forget to upload them to the /wp-includes/images folder. Be careful, keep the ' ' (apostrophes) and the , (comma)! You can also add more smileys, instead of replacing.
(note) You can customize the smileys! I recommend this snippet:
img.wp-smiley {
vertical-align: middle;
}
This will align your smileys vertically in the middle in your text.
One Response to “Custom smilies”
Leave a Comment
Works? Doesn't work? Other tips? Please leave a comment! :)
Thank you for this tutorial. I've been searching for it. ^-^ Really useful thank