FAQ

Frequently Asked Questions

How to add SVG upload support to your WordPress blog – CodeRevolution

By default, WordPress uploader do not support the SVG format. As this file format is becoming quite popular theses days, here is a simple recipe to add SVG upload to your WordPress install.

Simply add the code below to functions.php in your WordPress theme. SVG upload will be supported once the file is saved.

 add_filter('upload_mimes', 'my_upload_mimes');   function my_upload_mimes($mimes = array()) {     $mimes['svg'] = 'image/svg+xml';     return $mimes; } 

Thanks to dbushell for the snippet!

CodeRevolution Knowledge Base

Video tutorials