WordPress: Allow SVG uploads

Allow SVG uploads

Last Updated: 1 month ago

Add to function.php in the Child Theme

function my_myme_types($mime_types){    $mime_types['svg'] = 'image/svg+xml'; //Adding svg extension    return $mime_types;}add_filter('upload_mimes', 'my_myme_types', 1, 1);

 

Allow SVG uploads