Enable SVG uploads

Code snippets should be placed in your functions.php file or extracted in to your own custom plugin.

  • 1
  • 2
  • 3
  • 4
  • 5
function wptd_mime_types( $mimes ){ $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'wptd_mime_types');
@wpthemedotdev Post