Thursday, September 29, 2016

WordPress SVG Support: How to Enable SVGs in WordPress

Vector images are becoming increasingly common on the web. SVGs provide a scalable, responsive and fast alternative to standard images with the primary benefit being that they look crisp and sharp across any device and they are typically smaller in file size.

Cross-browser support is also now comprehensive, with all modern browsers supporting SVGs when used with the image tag or in CSS as part of the background property.

If you’re using WordPress, you’re probably familiar with the Media Library and how it works as a central repository for your media assets. The manager which handles uploading of files is initially restricted to a listing of approved file types.

Today’s tutorial will focus on how we can add SVG media support and also improve WordPress’ processing, handling and display of SVGs overall.

Note: If you’re in a rush you can download the complete solution as a WordPress plugin. Just download it and activate and enjoy SVG images on your site!

Continue reading %WordPress SVG Support: How to Enable SVGs in WordPress%


by Simon Codrington via SitePoint

No comments:

Post a Comment