Copy+Paste this to your theme’s functions.php to add support to SVG upload:

function easywpcode_allow_svg( $mimes ) {
	$mimes['svg'] = 'image/svg+xml';
	$mimes['svgz'] = 'image/svg+xml';
	return $mimes;
}

add_filter( 'upload_mimes', 'easywpcode_allow_svg',9999 );

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!