earthrenewing
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Integrating Custom SmileysThe 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.
Forum: Fixing WordPress
In reply to: Integrating Custom SmileysGood 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