Support SVG images in WordPress by custom code
Here’s a code snippet that you can use to add support for SVG images in WordPress: function add_svg_support( $mimes ) { $mimes[‘svg’] = ‘image/svg+xml’; return $mimes; } add_filter( ‘upload_mimes’, ‘add_svg_support’ ); This code adds the SVG MIME type to the list of allowed file types in WordPress. You can add this code to your theme’s…