SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows you to easily use them on your site.
The main project page is located here: http://www.sterlinghamilton.com/projects/scalable-vector-graphics/
Warning: Understanding that uploading any file to the system is a potential security risk, it is strongly recommended to only let trusted users to have upload privileges.
Resources for understanding security risks:
- Upload scalable-vector-graphics-svg into your plugins directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Use SVG files just like you would use a normal image file.
- Go to your plugin manager, located generally at
- Click “Add New”.
- Search for “Scalable Vector Graphics SVG”.
- Click “Install Now”.
- Click “Activate Plugin”.
- Be in the root of your WordPress installation.
wp plugin install scalable-vector-graphics-svg.
wp plugin activate scalable-vector-graphics-svg.
Works without issues. Thank you
I was manually modifying my function.php files but that was not working quite right. This plugin allowed me to archive the same without much work. My only suggestion will me to improve it to help uploading svgz files.
This is simple. You install the plugin and you can upload, preview and select svg images with you WP interface.
I have tried a number of plugins that purport to enable the uploading of SVGs from within WP. But this is the only one that doesn’t cause the media library to behave weirdly. Thanks very much for a job done well!
It does one thing and it does it well. 😀
Amazing plugin. Love making menu icons and over-sized backgrounds and headers.
I compress the files before uploading them and the page load time is lighting fast.
Contributors & Developers
“Scalable Vector Graphics (SVG)” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Add a patch for core bug introduced in 4.7.1
- Created End User styles to allow for the front of the site to display SVG files properly.
- Fix mime-type issues. Changed too much too quickly. BAD DEVELOPER.
- Removed the sanitizer. This plugin isn’t about security. It’s about letting you use SVG files easily.
- Added more styling to improve Media Manager, including adjustments Grid View and Listing View
- Added additional styling to allow for SVG files to show for Featured Images.
- Reduced overall code footprint and complexity.
- Added code documentation.
- Resolved several serverside issues you may have been encountering having to do with security related stuff.
- Added inline styling to the administration area so SVG attachments will show up in list/grid views.
- Props to shield-9 (Daisuke Takahashi) for the code.
- The security cannot be perfect and it is recommended to only provide upload privileges to trusted users.
- Props to thedwards for bringing this to my attention.
- I broke everything. I’m sorry, but it had to be done.
- Basically how I had approached the problem before was wrong. It is now being done properly using the correct mime/type.
- Shortcodes are no longer needed, you can now use SVG files as you would any other image.
- Previews now show up in the media area for SVG files.
- IMPORTANT: Anyone using the version prior to 2.0 were using shortcodes to display SVG files. You will have to go back and replace those shortcodes with actual image tags. If you’re not familiar with HTML, you can just delete the shortcode out of the page/post and then insert the SVG file as you would any other image.
- Thanks to the guys over at mozilla.org for kicking me in the butt to actually fix this thing: https://bugzilla.mozilla.org/show_bug.cgi?id=721830
- One less required parameter and a graceful fail over to a valid implementation type. Props @Phil
- Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.
- I N C E P T I O N