mauri94
Forum Replies Created
-
Forum: Plugins
In reply to: [SVG Support] Sorry, this file type is not permitted for security reasons.In case you’re still struggeling: It needs to be added to your theme (preferably child theme)’s functions.php. @thomaslhotta’s code bit alone probably won’t do anything.
You’ll need something like this (do correct me if I’m wrong):
function bodhi_svgs_upload_mimes($mime_types) { $mime_types['svg'] = 'image/svg+xml'; return $mime_types; } add_filter('upload_mimes', 'bodhi_svgs_upload_mimes', 11);
See Plugin API/Filter Reference/upload mimes – WordPress Codex for more details about the upload_mimes filter.
- This reply was modified 5 years, 6 months ago by mauri94.
Forum: Plugins
In reply to: [SVG Support] Fixing the XML issue@benbodhi There are actually two ways to export a SVG in Illustrator:
– File > Save As… will save your SVG with the standard metadata information on the top (including the <svg>-line)
– File > Export > Export As… will save your SVG without the standard metadata information on the top.See this website for more information: https://css-tricks.com/illustrator-to-svg/
File > Export > Export As… is considered the best choice when using SVG files for the web because they are pretty close to web-ready.
Forum: Plugins
In reply to: [SVG Support] Not working on MultisiteWordPress changed the way it handles mime types (including SVG). Check the following topics to learn more about the current situation and how to temporarily fix this issue until @benbodhi found a way:
– https://www.ads-software.com/support/topic/sorry-this-file-type-is-not-permitted-for-security-reasons-16/
– https://www.ads-software.com/support/topic/make-sure-to-add-to-the-very-beginning/- This reply was modified 5 years, 10 months ago by mauri94.
@minnur (Woah, that’s a fast reply from your side – Thanks!)
Hmm… I just see “Upload Files” and “Media Library” there. I’ll wait patiently ??