{"id":10840090,"date":"2018-11-02T04:15:42","date_gmt":"2018-11-02T04:15:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10840090"},"modified":"2023-04-11T20:23:16","modified_gmt":"2023-04-11T20:23:16","slug":"what-are-smilies","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/what-are-smilies\/","title":{"rendered":"What are smilies?"},"content":{"rendered":"\n

What Are Smileys?<\/h2>\n\n\n\n

Smileys, also known as “emoticons”, are glyphs<\/em> used to convey emotions in your writing. They are a great way to brighten up posts. \ud83d\ude42<\/p>\n\n\n\n

Text smileys are created by typing two or more punctuation marks. Some examples are:<\/p>\n\n\n\n

;-)<\/code> is equivalent to \ud83d\ude09<\/p>\n\n\n\n

:-)<\/code> is equivalent to \ud83d\ude42<\/p>\n\n\n\n

:-(<\/code> is equivalent to \ud83d\ude41<\/p>\n\n\n\n

:-?<\/code> is equivalent to \ud83d\ude15<\/p>\n\n\n\n

To learn more about emoticons and their history, see the Wikipedia entry on Emoticons<\/a>.<\/p>\n\n\n\n

Smileys are not Emoji<\/h3>\n\n\n\n

Although smileys and emoji can both display smiley faces and such, emoji are a newer development and have a much wider range of images that can be displayed. (They are also created differently.) For more information on emoji and how to use them, see the Emoji<\/a> page.<\/p>\n\n\n\n

How Does WordPress Handle Smileys?<\/h2>\n\n\n\n

By default, WordPress automatically converts text smileys to graphic images. When you type ;-)<\/code> in your post you see \ud83d\ude09 when you preview or publish your post.<\/p>\n\n\n\n

To Turn off Graphic Smileys<\/h2>\n\n\n\n

As of WordPress 4.3, the option to disable graphic smileys was removed from new installs. There is a plugin<\/a> if you want to retain the option.<\/p>\n\n\n\n

What Text Do I Type to Make Smileys?<\/h2>\n\n\n\n

Smiley images and the text used to produce them*:<\/p>\n\n\n\n

icon<\/th>text<\/th>text<\/th>full text<\/th>icon<\/th>full text<\/th><\/tr>
\ud83d\ude42<\/td>:)<\/code><\/td>:-)<\/code><\/td>:smile:<\/code><\/td>\ud83d\ude06<\/td>:lol:<\/code><\/td><\/tr>
\ud83d\ude00<\/td>:D<\/code><\/td>:-D<\/code><\/td>:grin:<\/code><\/td>\ud83d\ude33<\/td>:oops:<\/code><\/td><\/tr>
\ud83d\ude41<\/td>:(<\/code><\/td>:-(<\/code><\/td>:sad:<\/code><\/td>\ud83d\ude25<\/td>:cry:<\/code><\/td><\/tr>
\ud83d\ude2e<\/td>:o<\/code><\/td>:-o<\/code><\/td>:eek:<\/code><\/td>\ud83d\udc7f<\/td>:evil:<\/code><\/td><\/tr>
\ud83d\ude2f<\/td>8O<\/code><\/td>8-O<\/code><\/td>:shock:<\/code><\/td>\ud83d\ude08<\/td>:twisted:<\/code><\/td><\/tr>
\ud83d\ude15<\/td>:?<\/code><\/td>:-?<\/code><\/td>:???:<\/code><\/td>\ud83d\ude44<\/td>:roll:<\/code><\/td><\/tr>
\ud83d\ude0e<\/td>8)<\/code><\/td>8-)<\/code><\/td>:cool:<\/code><\/td>\u2757<\/td>:!:<\/code><\/td><\/tr>
\ud83d\ude21<\/td>:x<\/code><\/td>:-x<\/code><\/td>:mad:<\/code><\/td>\u2753<\/td>:?:<\/code><\/td><\/tr>
\ud83d\ude1b<\/td>:P<\/code><\/td>:-P<\/code><\/td>:razz:<\/code><\/td>\ud83d\udca1<\/td>:idea:<\/code><\/td><\/tr>
\ud83d\ude10<\/td>:|<\/code><\/td>:-|<\/code><\/td>:neutral:<\/code><\/td>\u27a1<\/td>:arrow:<\/code><\/td><\/tr>
\ud83d\ude09<\/td>;)<\/code><\/td>;-)<\/code><\/td>:wink:<\/code><\/td>\":mrgreen:\"<\/td>:mrgreen:<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

* In some instances, multiple text options are available to display the same smiley.<\/em><\/p>\n\n\n\n

Category:Getting Started<\/p>\n\n\n\n

Troubleshooting Smileys<\/h2>\n\n\n\n

Why Doesn’t it Work?<\/h3>\n\n\n\n

Smileys may have been disabled by your WordPress admin. Another possibility is the smiley image files have been deleted from \/wp-includes\/images\/smilies<\/code>.<\/p>\n\n\n\n

Why Doesn’t it Work for Me?<\/h3>\n\n\n\n

If smileys work for others at your site but not for you:<\/em><\/p>\n\n\n\n

Type a space before and after your smiley text. That prevents the smiley being accidentally included in the text around it. \ud83d\ude33<\/p>\n\n\n\n

Make sure not to use quotes or other punctuation marks before and after the smiley text. \ud83d\ude44<\/p>\n\n\n\n

Where Are My Smiley Images Kept?<\/h3>\n\n\n\n

The smiley or emoticon image graphics are found in the \/wp-includes\/images\/smilies<\/code> directory.<\/p>\n\n\n\n

Note that smileys is spelled ‘eys’ in this documentation and the directory name for the smiley images is ‘smilies<\/em>, spelled ‘ies’. \ud83d\ude2f<\/p>\n\n\n\n

How Can I Have Different Smiley Images Appear?<\/h3>\n\n\n\n

The easiest way is to filter the smilies.<\/p>\n\n\n\n

Upload the images you want with the same name to your server (say in wp-content\/images\/smilies) and put this in your theme’s function.php:<\/p>\n\n\n

\nadd_filter( 'smilies_src', 'my_custom_smilies_src', 10, 3 );\nfunction my_custom_smilies_src( $img_src, $img, $siteurl )\n{\n        return $siteurl.'\/wp-content\/images\/smilies\/'.$img;\n}\n<\/pre>\n\n\n\n

That will replace http:\/\/example.com\/wp-includes\/images\/smilies\/icon_question.gif with http:\/\/example.com\/wp-content\/images\/smilies\/icon_question.gif<\/p>\n\n\n\n

Why are my Smiley Images Blank?<\/h3>\n\n\n\n

If you recently uploaded the images, it could be that the images have been uploaded in ASCII<\/em><\/strong> format by your FTP program. Re-upload the smileys ensuring that they are transferred in BINARY<\/em><\/strong> format.<\/p>\n\n\n\n

Some FTP programs have an auto-detect<\/strong> setting which will upload files in the correct format without user intervention. If you have such a setting, turn it on.<\/p>\n\n\n\n

Smiley CSS<\/h2>\n\n\n\n

The smiley images in WordPress are automatically given a CSS<\/a> class of wp-smiley<\/strong> when they are displayed in a post. You can use this class to style your smileys differently from other post images.<\/p>\n\n\n\n

For example, it’s not uncommon to set up images in a post to appear on the left-hand side of the content with text flowing around the image. The CSS for that might look like this:<\/p>\n\n\n

\n.post img {\n        float: left;\n}\n<\/pre>\n\n\n\n

This would typically affect all images in a post, including<\/strong> your smiley images. To override<\/em> this so that smileys stay inline, you could add this to your CSS:<\/p>\n\n\n

\nimg.wp-smiley {\n        float: none;\n}\n<\/pre>\n\n\n\n

For more on CSS in WordPress, you might want to start here<\/a>.<\/p>\n\n\n\n

More Information on Smileys<\/h2>\n\n\n\n