Friday, April 26, 2013

Add SVG upload support to WordPress blog

How to add SVG upload support to your WordPress blog

The WordPress uploader generally do not support the SVG format by default. But this file format is becoming quite popular nowadays, Thee simple example can guide you to add SVG upload to your WordPress install.

You have to simply just add the code below to your functions.php file. After that SVG upload will be supported autometically once the file is saved.

add_filter('upload_mimes', 'my_upload_mimes');

function my_upload_mimes($mimes = array()) {
    $mimes['svg'] = 'image/svg+xml';
    return $mimes;

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off