SVG
- Author
- KD Web
- Version
- 1.0.0
- Requires
- 6.0.0
- Tested
- 6.9.9
- Requires PHP
- 8.0.0
A comprehensive WordPress plugin that enables secure support for .svg (Scalable Vector Graphics) files in the WordPress media library. Upload, manage, and display SVG files safely with built-in sanitization to prevent security vulnerabilities.
Features
- Upload .svg and .svgz files directly to the WordPress media library.
- Automatic SVG sanitization to prevent XSS and other security risks.
- Full media library integration with thumbnail previews.
- Automatic dimension detection from SVG viewBox and attributes.
- Support for all standard WordPress image sizes.
- Extends allowed HTML tags to support inline SVG elements.
- Filterable sanitization rules for advanced customization.
- Clean admin interface with proper SVG display in media grids.
How to Use
- Install and activate the SVG plugin.
- Navigate to Media > Add New or use the media uploader in any post or page.
- Upload your .svg file like any other image file.
- The plugin automatically sanitizes the SVG to remove potentially harmful code.
- Use the SVG in your content just like any other image.
- SVG files will display properly in the media library with thumbnails.
Benefits
- Secure SVG uploads with automatic malicious code removal.
- Perfect quality at any size - truly scalable vector graphics.
- Smaller file sizes compared to raster images (PNG, JPG).
- SEO-friendly with inline SVG support for better accessibility.
- Maintains design integrity across all screen resolutions and devices.
Changelog
1.0.0
Released
Download
Back