Smileys in comments for a WordPress blog. Emoticon plugins for WordPress blog WordPress Emoticons

💖 Do you like it? Share the link with your friends

Hello! I’m with you again, the author of the Free Webmaster Blog, and today we’ll talk about emoticons on WordPress. Emoticons have long gained popularity. This is a great way to express your emotions and sometimes it is enough to use just one emoji to express your feelings.

To be honest, I was not very impressed with the standard WordPress emoticons. Their appearance seemed primitive to me, too ancient, and therefore I decided to replace them with others.

Standard WordPress emoticons

There are two ways to go here.

  • The first is to install a plugin that will automatically replace standard emoticons with others. But too many active plugins will slow down the blog and increase the load on the server. In addition, plugins often add their tables to the database MySQL data, and when deleting, they don’t always clean up this database and have to do it through the phpMyAdmin panel.
  • The second way will allow you to avoid such troubles, and will also allow you to better learn how WordPress works. It involves manual editing.

Therefore, we will go the second way. Standard emoticons are located in the /wp-includes/images/smilies/ folder in the root of your blog. To change them you just need to rewrite the old ones with new ones. You can take absolutely any emoticons, rename them so that the file names match the standard ones and upload them back to the same folder. I'm posting the sets of emoticons that I already have:

There is no need to rename anything, all that remains is to replace the standard ones with these and you’re done. This issue has been resolved.

Next question: how to add emoticons above the text field of the comment form? Everything is very simple here too! To do this, in the comments.php file of your theme before the opening tag, I have it as follows:

paste the following code:

function addsmile ($smile)

tell friends