Uploading SVG files

WordPress doesn’t allow uploading SVG files in the media library. If you try to upload any .svg file you will get an error like this:

⚠️ Warning

"logo.svg" has failed to upload.
Sorry, this file type is not permitted for security reasons.

There is a handy plugin Safe SVG which enables SVG uploads and makes it safe. There is no need for additional configuration. Simply install this plugin and upload your SVG logo as you did with raster images.