Tutorial: How To Upload .svg Files To The WordPress Media Folder
Автор: Wiyre
Загружено: 2016-12-01
Просмотров: 16049
Описание:
To upload SVG images, copy and paste the code below exactly as shown:
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
In this guide I'll show you how you can add a .svg image to your media folder form within Wordpress. This is usually blocked by default because sometimes .svg images can pose as a security risk if they are uploaded maliciously. I would recommend that you allow .svg uploads only if you really need a .svg file - otherwise, stick with a .png or .jpg.
If you have any questions or need additional support, leave a comment below and I will try to help as best as I can.
View more tutorials like this: https://www.wiyre.com
Thanks for your support!
Jon from Wiyre.com
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: