Contents
WordPress blocks the upload of SVG files by default. This restriction can be circumvented in various ways. Usually a PHP code is used for this, which is integrated into functions.php, or you can use a plugin for this. Breakdance already contains this function by default. In this tutorial, we will show you how to activate the SVG upload.
1. breakdance settings
From the WordPress dashboard, go to "Breakdance" > "Settings" (Settings).
2. allow SVG
Now click on "Advanced" and activate the checkbox "Allow SVG Uploads In The WP Media Library". Now you can make the changes using the "Save Changes" at the bottom of the screen. That's it! Now you can upload SVG files to the WordPress media library.
Important!
This is a very handy option to enable the upload of SVG files in Breakdance. However, please note the warning regarding the potential security risks of enabling the SVG upload option. SVG files can contain malicious code. It is up to you whether you take the risk of enabling it in Breakdance without installing another plugin.
Reference link: https://breakdance.com/documentation/other/security/