Allow SVG upload WordPress

Voeg deze code toe in de functions.php van je thema of Code Snippets.

function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');

 

Wil jij gratis WordPress tips in je inbox ontvangen?

Wij sturen maximaal 2 e-mails per maand. Beloofd!

Voornaam
Dit veld is bedoeld voor validatiedoeleinden en moet niet worden gewijzigd.