Help Uploading SVGs in WordPress After Update

SVGs have been around for the past few years now and have revolutionised how we handle digital images in many ways. With better monitors and technologies have become available, uploading an image the old fashioned way just won’t cut it anymore.

I won’t go into detail of all the reasons why SVGs are fantastic, but be sure to read an article posted by Jonathan Cutrell back in 2012 that provides a pretty extensive list. The main takeaway from the post is this nice, tidy excerpt:

SVG offers a way to do full resolution graphical elements, no matter what size screen, what zoom level, or what resolution your user’s device has.

And it’s only gotten better.

Unfortunately WordPress hasn’t been too great at providing SVG support through it’s core updates, and to add insult to injury their 4.7.1 update broke the old method of allowing SVGs. So if you or your digital agency has updated your WordPress website recently, make sure that you can still upload them! If not, we have you covered.

To ensure we can upload lovely, optimised SVGs without adding another plugin we only need to add a few lines of code to our functions.php.


See the Pen WordPress 4.7.1+ SVG Upload by Tom Wade (@twade) on CodePen.


If you have any WordPress issues, or you’re worried about keeping your site up to date & secure, contact our WordPress experts directly.

Related posts

We Love WordPress

Charlotte 20/06/2014

As a web design and development agency, we pride ourselves on using the best sys...

do go on