In today’s post i will explain how to use smileys with your WordPress website. Smileys express your emotions with a symbol. Smileys, also known as “emoticons,” are glyphs used to convey emotions in your writing. They are a great way to brighten up posts. In the most recent years, as social media has become widespread, emoticons have played a significant role in communication through technology.
Some examples are:
By default, WordPress automatically converts text smileys to graphic images. When you type π in your post you see smile emoticon when you preview or publish your post.
If you turn off graphic smileys, whatever you type in plain text will remain, and be displayed, as plain text.
Go to your Admin Panel
Select Settings -> Writing
In the Formatting section, uncheck the box for “Convert emoticons like π and π to graphics on display”
Turning off emoticons means that when you type π in a post you will see π when you preview or publish your post. So it doesn’t stop you from using emoticons as plain text. wink emoticon.
The easiest way is to filter the smilies.
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:
1 2 3 4 |
add_filter('smilies_src','my_custom_smilies_src', 1, 10); function my_custom_smilies_src($img_src, $img, $siteurl){ return $siteurl.'/wp-content/images/smilies/'.$img; } |
Thank you for giving time on freewebmentor community. Please donβt forget to subscribe our newsletter or join us on Facebook to be the first to learn the next great thing from freewebmentor.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: smilies in wordpress, smily face icon, wordpress, wordpress smilies