• SVG upload is not enabled in WordPress by default. Users will need to add this code to their theme’s functions file to enable it.

    function cc_mime_types($mimes) {
      $mimes['svg'] = 'image/svg+xml';
      return $mimes;
    }
    add_filter('upload_mimes', 'cc_mime_types');

    Or they will have to upload image to their server via FTP which will be difficult for most users.

    It would be nice if this code is added in the plugin to enable SVG upload in WordPress when this plugin is active.

    Thanks

    https://www.ads-software.com/plugins/optimize-your-feed-for-feedly/

Viewing 1 replies (of 1 total)
  • Plugin Author implenton

    (@implenton)

    Hello @noumaan,

    sorry for the late reply.

    You raised a good topic!

    You are right about the SVG upload. WordPress does not support it by default. There is a long discussion about that here https://core.trac.www.ads-software.com/ticket/24251.

    It was a deliberate decision to include an input field first and the media selector under it, exactly for the reason WordPress does not allow it. Uploading the file via FTP might be a pain for some users. I believe you are right about this too.

    I will consider your suggestion, until then I will update the plugin description to make it more clear the limitation around SVG and recommend the snippet you mentioned and also plugins to enable the SVG support.

    Thanks, I appreciate your comment.

    • This reply was modified 8 years, 5 months ago by implenton.
Viewing 1 replies (of 1 total)
  • The topic ‘SVG Upload Not Enabled in WordPress’ is closed to new replies.