• Hello WordPress Community,

    with this post, I hope to have found the right forum.

    I am trying to use custom smileys and have followed the instructions shown here: https://www.ads-software.com/support/article/using-smilies/. (For now, also using the same folder as shown in the example.)

    Sadly, the smileys do not change on my website (except for the ones I have added manually via pictures). Then I have noticed that the smileys I tried to replace (from the folder) are not the ones shown on the website. Those seem to be hosted by you: https://s.w.org/images/core/emoji/11.2.0/svg/1f615.svg (as an example).

    I am hosting WordPress on my Webspace.

    Do you have a solution on how to use custom smileys instead of the new standard WordPress smileys?

    I am looking forward to your reply!

    Kind regards,
    Naomi

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello earthrenewing,

    Check if this reference URL helps you.

    https://wpcrux.com/blog/custom-wordpress-smilies/

    Thread Starter earthrenewing

    (@earthrenewing)

    Good evening, you both ??

    Finally, I had some time to check it out!

    @kartiks16: Thank you! This seems to work but I do want to specifically replace the standard smileys since smileys are mostly used in the following manner: ??

    @lucagrandicelli: Thank you! Yes, I made sure to exactly follow this guideline. I even asked my theme support and they said it should work, too, but that they also do not have the needed experience with the smileys to help me out. I am clueless to why it is not working.

    Kind regards,
    Naomi

    Ok, would you please paste here the code used to apply the filter? Also, please write down a filename of your choice from the smilies folder you uploaded.

    Thread Starter earthrenewing

    (@earthrenewing)

    The folder is the following: wp-content/images/smilies/

    I added the smileys using the same name as the WP standard smileys, e.g. icon_smile.gif.

    Then I went into my (child) theme’s folder and added the following code:

    add_filter( 'smilies_src', 'my_custom_smilies_src', 10, 3 );
    function my_custom_smilies_src( $img_src, $img, $siteurl ) {
        return $siteurl.'/wp-content/images/smilies/'.$img;
    }

    At first, I have put the smileys in my theme’s folder and adjusted the path in the code. As this did not work, I added the folder shown in the example, edited the path and still no result.

    But to be fair … if you check out the WP smiley saved in the WP smiley folder, it is not the one that is shown on WP sites anymore, best example would be this post ( ?? ) or the instruction page (replacing smileys) itself. That is why I think that this method would not work anyway since I am replacing smileys that are not used.

    Ok. URL of example?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Integrating Custom Smileys’ is closed to new replies.