Software > WordPress > WordPress Plugins >
https://wordpress.org/plugins/manage-upload-types/
Manage Upload Types enables an administrator to add additional, or modify existing, uploads allowed by WordPress.
I use this to support .svg and .svgz (compressed SVG).
—
- 2022-04-20 – Switched to SVG Support
-
2022-04-20 – 1.3 on WordPress 5.9.3, with PHP 8.1.4
- Cannot visit the options page.
- I’ll stop using this. Alternative: https://wordpress.org/plugins/file-upload-types/
-
2018-03-07 – (version not recorded) – on WordPress 4.9.4, with PHP 5.6.33
- It’s still working fine.
Configuration ∞
https://blog.spiralofhope.com/wp-admin/options-media.php
At the bottom, add Extension svg and Mime Type image/svg+xml
If uploading gives you a security error, then edit the .svg and make the first line:
<?xml version="1.0" encoding="utf-8"?>
See WordPress svg support for additional help.
I also add two other extension types:
| Extension | Mime Type |
|---|---|
svgz |
application/x-gzip |
asc |
text/plain |
.svg usage with BlogText ∞
2019-06-16 – This seems to be working just fine now.
Unfortunately, BlogText won’t render SVG images, so I have to manually link to them. =/
method one – non-resized linking ∞
Spoiler
This will expand to fill the browser/website.
method two – resized by a table ∞
{|
| width="150" | [[image:Open-source-hardware-logo.svg]]
|}
method three – manual linking ∞
- Add a regular link, as above
- Preview the page
right-clickand copy the image URL-
Paste it
https://blog.spiralofhope.com/wp-content/uploads/Open-source-hardware-logo.svg
https://blog.spiralofhope.com/wp-content/uploads/Open-source-hardware-logo.svg
You can also treat it like a regular URL:
[[https://blog.spiralofhope.com/wp-content/uploads/Open-source-hardware-logo.svg |link name]]
link name
You can optionally remove the beginning part, if you want to future-proof changes to your domain name:
[[/wp-content/uploads/Open-source-hardware-logo.svg]]
/wp-content/uploads/Open-source-hardware-logo.svg
or
[[/wp-content/uploads/Open-source-hardware-logo.svg |link name]]
link name

Some .svg files need to be edited.