1,000,000+
February 25, 2025
July 22, 2014
The complete SVG solution for WordPress – secure, flexible, and easy to use.
SVG Support enables secure SVG uploads with powerful features for both basic users and developers:
✨ Key Features:
– Secure SVG uploads with automatic sanitization
– Inline rendering for direct CSS/JS manipulation
– File size optimization through minification
– Role-based access control
– Advanced developer options
– Multisite compatible
– Full Block Editor (Gutenberg) compatibility
🔒 Security First:
– Built-in sanitization removes potentially harmful code
– Role-based upload restrictions
– Comprehensive MIME type validation
🎨 Designer Friendly:
– Direct styling of SVG elements
– Animation support
– Custom class targeting
– Automatic dimension handling
💻 Developer Ready:
– Advanced mode for additional features
– REST API support
– Gutenberg compatible
– Extensive hooks and filters
Basic Usage:
– First, install and activate SVG Support via your WordPress dashboard
– Upload SVG files to your media library like any other image
– Works seamlessly with Image blocks, Cover blocks and featured images
Advanced Usage:
– Enable “Advanced Mode” for minification and inline rendering
– Customize with hooks and filters for tailored functionality
Block Editor Usage:
– Use Advanced Mode to enable inline rendering:
– Add the "style-svg" class to Image blocks
– Add the "style-svg" class to Cover blocks to render SVG backgrounds inline
– Use “Skip Nested SVGs” setting to control inline rendering of SVGs within Cover blocks
Classic Editor Usage:
– Use Advanced Mode to add the "style-svg" class to <img> tags for inline rendering
– Enable “Auto Insert Class” option for automatic class insertion in Classic Editor
Common Issues & Solutions:
– SVG not displaying? Ensure dimensions are set in CSS.
– Need help? Use the support tab and I will do my best to assist you.
With a single click, you can spin up a completely free test site to test SVG Support using TasteWP! No sign up, no cards, nothing! How cool is that? Give it a go:
Click Here to spin up a test site in seconds
SVG Support prioritizes security with automatic sanitization and role-based restrictions. Only trusted users should have upload permissions. Configure settings to balance functionality and security.
I’m open to your suggestions and feedback – Thanks for using SVG Support!
Follow @SVGSupport on Twitter
Follow @benbodhi on Twitter
Follow @benbodhi on Warpcast
Note: I hope you like this plugin! Please take a moment to rate it.
The development version of SVG Support is maintained on GitHub. Feel free to contribute:
Contribute translations here. New to translating? Check the Translator Handbook.
No installation instructions provided.
Ensure “Advanced Mode” is enabled in Settings > SVG Support.
Disable “Advanced Mode” in the settings.
To allow SVG to work in the customizer, you will need to modify/add some code in your child theme’s function file. Here is a great tutorial on how to do that. The important part is:
'flex-width' => true
'flex-height' => true
You will need to edit your SVG file in a code editor so you can add CSS classes to each element you need to target within the SVG. Make sure that your IMG tag is being swapped out for your inline SVG and then you can use CSS or JS to apply animations to elements within your SVG file.
If you installed multisite prior to WordPress 3.5, then you will need to remove your ms-files. Here is a couple of resources to help you: Dumping ms-files Removing ms-files after 3.5.
If you are using SVG Support with Visual Composer or any other page builders, you will need to make sure that you can add your own class to the image. The easiest way to do this is by using a simple text or code block in the builder to put your image code in to. Additionally, there is now a setting to force all SVG files to be rendered inline.
You need to add the mime type for svg and svgz to: “MLA Settings > Media Library Assistant > Uploads (tab)” and then it works.
Security Enhancements:
Fixes:
Performance Improvements:
General Updates:
General Updates:
Fixes:
New Features:
Security Enhancements:
Code Improvements:
Fixes:
General Updates:
Security Enhancements:
Admin Interface Improvements:
Performance and Compatibility:
General Code Improvements:
Experimental Integration with WP All Import:
bodhisvgsInlineSupport();.| Version | Download | Type |
|---|---|---|
| 2.5.14 | Download | Stable |
| 2.5.13 | Download | Stable |
| 2.5.12 | Download | Stable |
| 2.5.11 | Download | Stable |
| 2.5.10 | Download | Stable |
| 2.5.9 | Download | Stable |
| 2.5.8 | Download | Stable |
| 2.5.7 | Download | Stable |
| 2.5.6 | Download | Stable |
| 2.5.5 | Download | Stable |
| 2.5.4 | Download | Stable |
| 2.5.3 | Download | Stable |
| 2.5.2 | Download | Stable |
| 2.5.1 | Download | Stable |
| 2.5 | Download | Stable |
| 2.4.2 | Download | Stable |
| 2.4.1 | Download | Stable |
| 2.4 | Download | Stable |
| 2.3.21 | Download | Stable |
| 2.3.20 | Download | Stable |
| 2.3.19 | Download | Stable |
| 2.3.18 | Download | Stable |
| 2.3.17 | Download | Stable |
| 2.3.16 | Download | Stable |
| 2.3.15 | Download | Stable |
| 2.3.14 | Download | Stable |
| 2.3.13 | Download | Stable |
| 2.3.12 | Download | Stable |
| 2.3.11 | Download | Stable |
| 2.3.10 | Download | Stable |
| 2.3.9 | Download | Stable |
| 2.3.8 | Download | Stable |
| 2.3.7 | Download | Stable |
| 2.3.6 | Download | Stable |
| 2.3.5 | Download | Stable |
| 2.3.4 | Download | Stable |
| 2.3.3 | Download | Stable |
| 2.3.2 | Download | Stable |
| 2.3.1 | Download | Stable |
| 2.3 | Download | Stable |
| 2.2.5 | Download | Stable |
| 2.2.4 | Download | Stable |
| 2.2.3.2 | Download | Stable |
| 2.2.3.1 | Download | Stable |
| 2.2.3 | Download | Stable |
| 2.2.2 | Download | Stable |
| 2.2.1 | Download | Stable |
| 2.2 | Download | Stable |
| 2.1.7 | Download | Stable |
| 2.1.6 | Download | Stable |
| 2.1.5 | Download | Stable |
| 2.1.4 | Download | Stable |
| 2.1.3 | Download | Stable |
| 2.1.2 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.1 | Download | Stable |
| 2.0 | Download | Stable |
| 1.0 | Download | Stable |
| Development | Download | Trunk |