• Resolved digitalchet

    (@digitalchet)


    Does this plugin support the display of SVG files? I’ve uploaded a bunch of smilies I created in SVG format but they’re not showing up in the configuration drop-down.

    If these are not supported, do you have plans to support these files if at all possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Thread Starter digitalchet

    (@digitalchet)

    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.

    Thread Starter digitalchet

    (@digitalchet)

    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?

    Thread Starter digitalchet

    (@digitalchet)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SVG files’ is closed to new replies.