WordPress knowledge sharing

How to enable SVG support in Elementor?

The Elementor supports the use of SVG icons and images for uploading. The operation method is also very simple. You can upload SVG images from any element with widget icons, which are available immediately after uploading.

Elementor Page Editor Click me directly The official website of Elementor Pro plug-in is fast and easy to use. Getting Started Click Purchase Elementor Pro plug-in and download and install to activate _WordPress page editor For more Elementor plug-ins, see Elementor Themes
For learning and small websites, choose servers with 1 core and 2g configuration to start, and for foreign theme websites, choose 2-core and 4g configuration to run smoothly.
Domestic servers: Alibaba Cloud Tencent Cloud (All have vouchers, which can be used to save money when paying) I don't know how to select regions and configurations. Please add Lao Wei's contact research on the right side of the page.
Foreign trade, B2C/C2C and other websites register domain names abroad. open Namesilo official website , enter and select in the search box, and then register. Remember to use the discount code to save money. Discount code click Course of domain name registration of foreign domain name provider Namesilo obtain.
Suggested choice of foreign trade website Hostinger virtual host , the price is cheap and the performance price ratio is very high! Hostinger topic
SiteGround virtual host Moderate price, good service! SiteGround Theme

What is SVG

Chinese name of SVG: Scalable vector graphics, which is an XML based vector image format, is a two-dimensional graphics that supports interactivity and animation.

SVG files are similar to icons, and will not lose resolution or blur after zooming in or out. At the same time, it keeps a small size, making the web page lighter.

For images with the same content, SVG is much smaller than jpg and png. It is too common for foreign websites to use SVG for logos and images.

How does the Elementor use SVG

Elements with icon controls in the Elementor all provide the upload SVG function. The uploaded SVG is placed in the WordPress media library together with other pictures.

WordPress does not support SVG format by default and requires additional code or SVG plug-in Can be uploaded.

Taking the icon box element as an example, we drag an icon box element from the toolbar to the editing area on the right. When moving the mouse to the icon on the left toolbar, click the upload SVG button.

When you upload the SVG icon for the first time, you will see a warning message reminding that there may be potential security risks in uploading SVG files. Click Enable.

 How does the Elementor use SVG

Then it will be taken to the Elementor>Settings>Advanced page.
Enable SVG upload: select Enable from the drop-down list and save.

 Elementor enables SVG upload: select Enable from the drop-down list

After enabling, the page will continue editing.

If the SVG you uploaded contains width or height inline styles, use the SVG icon to add the following CSS overrides in the "advance" tab of the element:

 selector svg { width: 100% ! important; height: 100% !important; }

In this way, the size of the icon can be controlled by the Elementor.

Like( one )
Article name: How to enable SVG support in Elementor
Article link: https://www.vpsss.net/28675.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.