How to upload SVG in WordPress – Learn WordPress from a to z

Tutorials 0 lượt xem
How to upload SVG in WordPress - Learn Wordpress from a to z thumbnail

How to upload SVG in WordPress?

Want to upload SVG in WordPress? By default, WordPress allows you to upload all popular image, audio, and video file formats, but SVG is not one of them.

What is SVG?

SVG  or  Scalable Vector Graphics  is a file format that defines vector graphics using the XML markup language. The main benefit of SVG is that it allows you to enlarge an image without losing quality.

Why use SVG images?

  • Guaranteed image quality.
  • Save space.
  • Animation: effects.
  • Compatibility.

But why SVG is not supported by wordpress?

It is because SVG is not part of WordPress Core. SVG images are basically text files, anyone can easily exploit it by inserting malicious code.

Accidentally uploading SVG images to WordPress can lead to serious consequences,

Instructions for uploading SVG with SVG Support plugin:

1. Installation: you go to Plugins => select Add new and then type the keyword “SVG Support”

svg support plugin

2. Settings:

svg for wordpress install

Please tick Restrict to Administrators then Save changes to upload the svg.

Enable Advanced Mode: this mode will help you customize animation and css

CSS class to target: default class is style-svg, you can add class name in empty box

Epilogue

Hopefully the tutorial on how to upload SVG in WordPress is simple.

If you find it interesting, you can follow the  wordpress tips section  to know more new knowledge.

Follow fanpage to receive the latest posts:  Group

Wish you have interesting and interesting knowledge about wordpress!

 

Bài viết liên quan