SVG Manager adds secure SVG support to WordPress. All uploaded SVGs are automatically sanitized to remove scripts and unsafe attributes, and can be used inline or as image tags in any component.
By default, WordPress blocks SVG file uploads because SVG files can contain JavaScript and other potentially harmful code. NitroShock SVG Manager adds safe SVG support by handling both the upload permission and the automatic sanitization of every uploaded file. Access it from NitroShock → SVG Manager.
The toggle at the top of the SVG Manager page enables or disables SVG support site-wide. When enabled, SVG files are added to WordPress's allowed MIME types and can be uploaded through both the SVG Manager directly and the standard WordPress Media Library.
Disabling the toggle blocks new SVG uploads but does not remove any existing files.
Each file is sanitized immediately before being saved. The sanitizer removes:
<script> tags and javascript: attribute valuesonclick, onload, onerror, and similarAll visual content — paths, shapes, filters, gradients, masks, symbols, and standard presentation attributes — is preserved.
Uploaded SVGs appear in a grid with a live preview and filename. You can:
Click Re-sanitize All to run every SVG in the library through the sanitizer again. Useful when you have inherited SVG files from another installation or after updating the sanitization configuration.
Two ways to use an SVG in a component:
<img> tag. This embeds the SVG as an image but CSS cannot target elements inside it.When SVG support is enabled, SVG files also appear in the standard WordPress Media Library alongside images and are usable anywhere the Media Library is accessible — the classic editor, page templates, and theme files.
No for typical SVGs. Sanitization removes only potentially harmful elements. All visual content is preserved. If an SVG uses <foreignObject> elements or external resource references, those specific elements will be removed.
Yes. CSS animations and SMIL (SVG's built-in animation language) are preserved by the sanitizer. JavaScript-based SVG animations are removed — use CSS animations for animated SVGs.
Existing SVG files remain on disk and in the Media Library. They continue to work on pages where they have already been inserted. New uploads are blocked until support is re-enabled.