Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2020 10:53
What would you like to do?
Add SVG file format support to WordPress
// Add these to child theme/theme's functions.php file
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
add_filter('upload_mimes', 'cc_mime_types');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment