Plugin Author
tuxlog
(@tuxlog)
Hello,
wp-monalisa supports png and gif at the moment. I have never tested it with svg files. You can give it a try changing png to svg in wpml_admin.php at line 569 and line 609. It would be graet to hear if it is working.
Cheers, tuxlog
Ok, great… yeah. That actually seemed to do the trick (Although the line numbers differed on mine -568 & 608)
Additionally however, I also had to edit wp-monalisa-default.css to add a width to div.wpml_ico_icon to get them to show up in the correct dimensions in the front end. Without it, they were around 3px large. ¯\_(ツ)_/¯
Otherwise, it does the job. Definitely would recommend adding to the release.
I just updated to the latest version which included the SVG updates and noticed that something you did broke the functionality. All I see now are a list of image paths.
After a little digging into wpml_admin.php, I noticed the extension values use different quotes:
if ($ext == "gif" || $ext == 'png' || $ext == 'svg') {
if ($ext == "gif" || $ext == "png" || $ext == 'svg') {
Could this have broken the functionality?
Not sure if the above still applies but I discovered the update had deleted the new folder with my smilies created in the wp-monalisa/icons folder.
Plugin Author
tuxlog
(@tuxlog)
Thanks for your hint, I think I found the problem and fixed it with handling the image size of the SVG files (hopefully) correctly.
Please try v5.1
Every update will delete folders you add in the wp-monalisa directory.
Please place your smilies outside the plugin path, e.g. wp-content/svgsmilies.