Тёмный

How to Upload SVG files in Wordpress (Without any Plugin) | Add Vector Images to WordPress 

Key2Blogging
Подписаться 11 тыс.
Просмотров 23 тыс.
50% 1

This video will show you how to upload SVG files in WordPress. Here, I will cover two methods to enable the support of SVG image files in WordPress.
One is by adding a Plugin and the other method is by adding a PHP code in the theme editor.
#SVG stands for Scalable Vector Graphics which is an Extensible Markup Language-based vector image format for two-dimensional graphics. SVG images and their behaviours are defined in XML text files.
#Wordpress doesn't support the upload of SVG files as it may create security risks but you can bypass this by following this video.
✅ Download the PHP code: key2blogging.c...
✅ Code snippet Plugin: wordpress.org/...
If you have any doubt ask me in the comment section and Subscribe to my channel for more upcoming videos like this.
Related Videos:
✅ How to upload webp images in WordPress (with or without Plugin): • How to Upload WebP ima...
✅ Add Author box in GeneratePress (without Plugin): • How to Add Author Box ...
✅ Twitter: / key2blogging
✅ Telegram: t.me/techyleaf
✅ Quora: www.quora.com/...
✅ Pinterest: / abhishekpadhi666
Gear I Use -
Mic: amzn.to/3tOnN7Q
Wireless mouse: amzn.to/3uP9DVB
Keyboard: amzn.to/3fk0MVc
Find more videos at #key2blogging
#wordpressguide #wordpresstuitorials #imageoptimization

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@2000gile
@2000gile 4 месяца назад
using the plugin not solved my problem, but using this method solved my problem. thanks bro
@majeedalbadrani
@majeedalbadrani 3 месяца назад
Thank you , can you tell me whwer I shall found SVG development focus file ?
@writingbee
@writingbee 11 месяцев назад
Hey! thanks for this video. Please clarify how to show this svg file on a particular page or category?
@Key2Blogging
@Key2Blogging 11 месяцев назад
Just use the media library and choose the svg image as you select other image files like jpg, png
@writingbee
@writingbee 11 месяцев назад
ok, thanks@@Key2Blogging
@sirhenryhu
@sirhenryhu Год назад
Thank you for sharing. The code works like a charm.
@Key2Blogging
@Key2Blogging Год назад
You're welcome!
@instant_mint
@instant_mint 9 месяцев назад
Thanks. What are the cons of using a plugin for this? It seems easier but at the same time using the code feels like you're "in control" more, so which is best?
@Key2Blogging
@Key2Blogging 8 месяцев назад
You can use any method you Like. It's just personal preference. Most people don't like to add plugin for simple task like this.
@instant_mint
@instant_mint 8 месяцев назад
@@Key2Blogging Okay, Thank you!
@debendrapandia1865
@debendrapandia1865 3 года назад
The coding is working perfectly fine. 👍👍
@Sarah-dm5hc
@Sarah-dm5hc Год назад
J'ai copié collé manuellement le code dans le fichier function.php directement depuis le FTP et ça fonctionne :) merci !
@Key2Blogging
@Key2Blogging Год назад
You are welcome..
@michellesudhakar9961
@michellesudhakar9961 Год назад
Thanks for the video. What are the benefits of the code over the plugin? Thanks for your response
@Key2Blogging
@Key2Blogging Год назад
Those who don't want to add a additional plugins and use one code manager plugin for multiple function in wordpress
@michellesudhakar9961
@michellesudhakar9961 Год назад
Perhaps not related to the video but any idea on how to connect my current go daddy site to my home page? It seems to be redirected to a blog page instead of redirecting to my landing page Any help is appreciated@@Key2Blogging
@sgt.powerpuff3107
@sgt.powerpuff3107 2 года назад
07.2022... it works. Awesome, thx man
@THAIWAK
@THAIWAK 2 года назад
Very informative. Thank you and stay safe! Martin
@srabeel
@srabeel 2 года назад
I have a problem. I added the logo to the site svg file, but then the colors in the logo are not on there place or position, it looks like it is moving up , please do you have any idea why this happen
@Key2Blogging
@Key2Blogging 2 года назад
It may happen due to existing CSS code written for svg files. Why not you use a Png format for logo.
@j.s.enterprises9454
@j.s.enterprises9454 2 года назад
Thankyou it worked correctly with code ..
@Key2Blogging
@Key2Blogging 2 года назад
You're welcome!
@pt_trainer9244
@pt_trainer9244 2 месяца назад
thanks, just addding the plugin is enough to upload svg
@Key2Blogging
@Key2Blogging 2 месяца назад
Yes
@ohmyads3d
@ohmyads3d 2 года назад
After a svg graphics was added to a page, is it possible to make it into a button? I.e. react to mouse click?
@Key2Blogging
@Key2Blogging 2 года назад
Yes, you can use the svg icon inside a button also.
@martynpage4823
@martynpage4823 2 года назад
Have you any advice about compressing svg files?
@Key2Blogging
@Key2Blogging 2 года назад
Yes, you can compress svg also.
@martynpage4823
@martynpage4823 2 года назад
@@Key2Blogging sorry....I was asking how you go about compressing svg files?
@Key2Blogging
@Key2Blogging 2 года назад
Search "compress svg online" and you will see alot of sites to compress this format.
@martynpage4823
@martynpage4823 2 года назад
Hi...have a couple of questions...In your example you use an undraw svg....undraw has an extensive library of files and I was thinking of using them in hero images etc...would you use a compressed .jpg file or the svg? Second question..would you use an svg for your logo or compressed .png file?
@Key2Blogging
@Key2Blogging 2 года назад
Svg is always a better option as it provides better quality and less size
@martynpage4823
@martynpage4823 2 года назад
@@Key2Blogging thank you so much for a quick reply....what about the security side of things...is there a plugin to protect us from crap in svg files? What am I looking for if I open up the svg files in illustrator...hope you don't mind the questions....love your videos!
@Key2Blogging
@Key2Blogging 2 года назад
No problem, you can ask all of your doubts. Only use svg images from reputed sites like undraw, storyset, freepik etc. But, there is some security risk in svg as they are written in html. So, downloading from untrusted sites may create problem.
@martynpage4823
@martynpage4823 2 года назад
@@Key2Blogging In the code for the functions.php file you have a specific function for .thumbnail images...but what about when using for background images 1920 x 1080....Featured images 1200 x 900...900 x 1200....have you functions for those types ....?
@oumaimaelrhazal5649
@oumaimaelrhazal5649 2 года назад
Thank you so much. It work perfectly
@Key2Blogging
@Key2Blogging 2 года назад
Welcome 🙂
@Consult_With_Holly
@Consult_With_Holly 7 месяцев назад
I've tried everything and nothing I do works
@Key2Blogging
@Key2Blogging 7 месяцев назад
Did you try using a Plugin Like svg support
@skjelstad777
@skjelstad777 2 года назад
HI, is the code secure?
@Key2Blogging
@Key2Blogging 2 года назад
Yes, it is secure and enable svg Upload but always use svg files from trusted source only. Because svg files may infected as it is an HTML based file. But there is no issue with this function file and it is using most of the svg plugin.
@allaboutbodybuilding7619
@allaboutbodybuilding7619 2 года назад
sir mere usme ye cide work ni kr raha h kya karu sir ab mai
@Key2Blogging
@Key2Blogging 2 года назад
Then Use a plugin like WP SVG Images by shortpixel
@MarkAngels
@MarkAngels Месяц назад
comigo não funcionou.
@Key2Blogging
@Key2Blogging Месяц назад
what didn't work code method or Plugin Method ?
@Ponchovogel
@Ponchovogel 3 года назад
works fine with the latest WP. Copy the code into your child-theme function.php
@Key2Blogging
@Key2Blogging 3 года назад
Yes, you can use it in child theme also..
@tamjidhossain6957
@tamjidhossain6957 2 года назад
thank you brother
@MsWazaf
@MsWazaf 10 месяцев назад
thank you
@techbestreview3989
@techbestreview3989 2 года назад
Thanks
@BOOMER989
@BOOMER989 Год назад
Bhai Mera svg support nhi kar rha aur nahh me kisi ko bhej pa rha pls help me do u have insta ??
@jamal.salouni
@jamal.salouni 11 месяцев назад
thank you
Далее
How To Upload SVG Files In WordPress (2 Methods)
5:08
Просмотров 1,4 тыс.
🎙ПОЮ ВЖИВУЮ!
3:07:23
Просмотров 913 тыс.
How to upload SVG files in WordPress Video
8:45
Просмотров 8 тыс.
SVG Tutorial For Beginners - WordPress & Elementor
26:00
The Basics of Dynamic Content in 15 Minutes
18:16
Просмотров 183 тыс.
How To Build a $20,000 3D Website (No Code + AI)
8:12
Просмотров 275 тыс.
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 655 тыс.
How to Add Animated SVG Icons in WordPress for FREE
6:53
🎙ПОЮ ВЖИВУЮ!
3:07:23
Просмотров 913 тыс.