Allow SVG uploads in WordPress
There are cases that you need to upload SVGs to the media library in WordPress. It is possible with a small snippet that comes in the functions.php:
/** allow SVG Uploads */ function jado_myme_types($mime_types) { $mime_types['svg'] = 'image/svg+xml'; return $mime_types; } add_filter('upload_mimes', 'jado_myme_types', 1, 1);