DEV Community

Cover image for Fix WordPress SVG Support
Christian Ahrweiler
Christian Ahrweiler

Posted on

Fix WordPress SVG Support

SVG is useful.

Logos, icons, illustrations, interface graphics — SVG files stay sharp at every size and are often much smaller than raster images.

For modern websites, SVG makes a lot of sense.

But SVG is not just an image format.

An SVG file is XML. It can contain more than shapes and paths. It can contain code that should not be uploaded blindly to a website.

That is why SVG support in WordPress is still not as simple as uploading a JPG or PNG.

The goal is not only to allow .svg files.

The goal is to allow SVG files safely.

WordPress may support SVG in some controlled places, but that is not the same as full SVG upload support in the Media Library. Site owners still need a safe way to upload SVG images, use them as attachments, and insert them into posts without opening the door to malicious code.

That is what atec SVG is built for.

It adds SVG support for WordPress media uploads, supports SVG files as featured images, and blocks SVG images that contain malicious script code.

No complicated setup.

Activate it, upload SVG files, and keep unsafe SVG content out.

atec SVG is available from atec Plugins:

https://atecplugins.com/

Top comments (0)