Scalable Vector Graphics, or SVGs, paintings another way from common symbol recordsdata. A PNG or JPEG shops pixels. An SVG shops vector directions, which is why an emblem, icon, or representation can keep sharp on a telephone display, a desktop track, or a big show.
That flexibility makes SVGs helpful for greater than crisp symbol high quality. Since SVGs are constructed from paths and shapes, you’ll ceaselessly modify their fill, stroke, measurement, and animation with out opening a design software. Divi 5‘s new SVG Module brings that workflow into the Visible Builder. You’ll paste SVG markup immediately, add an SVG report when your WordPress web site helps it, and elegance the graphic with Divi’s design controls.
What Is Divi 5’s SVG Module?
The SVG Module is a devoted Divi 5 module for including scalable vector graphics to a web page.
Divi has lengthy integrated an Symbol module, however SVGs don’t seem to be slightly the similar as usual symbol recordsdata. They’re vector-based graphics produced from markup, paths, and shapes. That implies they are able to scale with out shedding high quality and will also be styled in tactics a flat symbol report can’t.
That difference issues.
The Symbol module can show symbol recordsdata. The SVG Module is constructed for SVG-specific workflows. It permits you to upload SVG markup immediately or use an uploaded SVG report, then keep an eye on key SVG types equivalent to Fill and Stroke from inside of Divi.
The place The SVG Module Works Absolute best
Use the SVG Module when the graphic wishes to stick sharp, scale cleanly, or fit your design machine.
- Trademarks and emblem marks: Stay branding crisp throughout display sizes and high-density shows.
- Icons: Upload customized icons and elegance their fill or stroke to compare your web site’s palette.
- Ornamental shapes: Use dividers, blobs, prospers, and background accents that scale with out blur.
- Customized illustrations: Paste SVG markup for graphics you need to taste immediately within the builder.
For footage, screenshots, and raster art work, the Symbol module continues to be the appropriate selection. For vector graphics that want styling keep an eye on, the SVG Module is the simpler are compatible.
How To Use The Divi 5 SVG Module
The workflow is discreet. Upload the module, select the SVG supply, then taste the graphic within the Design tab. No customized code is needed for the module itself. The one additional setup it’s possible you’ll want is WordPress SVG add beef up, and handiest when you need to add SVG recordsdata to the Media Library.
Upload The SVG Module To Your Web page
Click on the grey plus icon inside of any Row to open the module listing. Kind SVG within the seek bar, or scroll till you in finding the SVG Module. Click on the module so as to add it for your web page.

The module so much and opens its settings panel. You’ll position it anyplace a normal Divi module works, together with single-column rows, multi-column layouts, nested rows, Flexbox layouts, and Grid layouts.
Select Your SVG Supply
Within the Content material tab, the SVG Supply surroundings provides you with two tactics so as to add your graphic:
- SVG Code: Paste legitimate SVG markup immediately into the module.
- Uploaded SVG: Make a selection an SVG report from the WordPress Media Library.
Each choices can show the similar graphic. The easier selection will depend on how you need to regulate the asset.
Possibility 1: Paste SVG Code
Select SVG Code when you need the quickest workflow and don’t wish to retailer the SVG as a separate Media Library report. Paste the whole SVG markup into the sector. The markup should be a sound <svg> part. Partial or damaged SVG code is not going to render as it should be.

This feature does no longer require WordPress SVG add beef up since you don’t seem to be importing a report to the Media Library. You’ll get SVG markup from equipment like Figma, Adobe Illustrator, or icon libraries that supply copyable SVG code. Blank, easy SVGs in most cases paintings very best as a result of they’re more straightforward to taste with Fill and Stroke.
Possibility 2: Add An SVG Document
Select Uploaded SVG when you need to regulate the graphic as a reusable report within the WordPress Media Library. This workflow comes in handy for shared emblem property, client-editable graphics, or SVGs that seem throughout a couple of pages.
There’s one necessary WordPress element to grasp first: WordPress blocks SVG uploads by means of default for safety causes. That doesn’t prevent the SVG Code possibility from running. It handiest impacts the Uploaded SVG workflow.
Do You Want To Allow SVG Uploads?
No longer all the time. When you paste SVG markup into the SVG Code box, you don’t want to allow SVG uploads in WordPress.
If you wish to use Uploaded SVG, then your web site should permit SVG uploads. The more secure no-code trail is to make use of a depended on plugin as a substitute of including customized PHP for your theme recordsdata. The screenshot underneath makes use of the File Upload Types by WPForms plugin to allow the SVG report kind. After putting in and activating it, pass to Settings > Document Add Sorts, seek for SVG, test the SVG possibility, and save your settings.

Use this provided that your workflow wishes SVG recordsdata within the Media Library. SVG recordsdata can comprise scripts if they don’t seem to be wiped clean correctly. Simplest add SVGs from depended on assets, and use a plugin or workflow that sanitizes SVG recordsdata sooner than they’re added for your web site.
Upload A Name And Hyperlink When Wanted
The Content material tab additionally features a Name box. Use it when the SVG communicates that means, equivalent to an emblem, icon, or representation that helps the content material. The name can lend a hand with accessibility and might seem as a tooltip when any individual hovers over the graphic.

The SVG Module additionally contains Hyperlink settings. Use them when the entire SVG will have to be clickable, equivalent to an emblem that hyperlinks to the homepage or an icon that hyperlinks to a social profile.

The SVG module is extremely flexible. It may be used mainly anyplace as an ornamental element. Playing cards, hero phase, highlights, and extra. For this case, we’re the use of a vegetable line artwork SVG as proven as a bit divider.
And for that impact, it wishes to move around the web page. So, we went forward and set the row’s width and max-width to 100vw, so it stays flush on all sides.

And since it’s an SVG report, it’s going to simply adapt to the dimensions exchange with out pixelating. Now, let’s dive into the design choices to be had for the SVG itself.
Taste SVGs In The Design Tab
After including the SVG, open the Design tab. That is the place the module turns into extra helpful than a static symbol. You’ll keep an eye on SVG-specific types like Fill and Stroke, then use usual Divi design settings for sizing, spacing, filters, transforms, and animation.
Keep an eye on Fill
Fill controls the colour inside of closed SVG shapes. Whilst you set Fill within the module, Divi can override fill values already outlined within the SVG markup. This makes it more straightforward to compare the graphic to the web page design with out modifying the unique report.
For one-off graphics, a static colour is okay. For a scalable design machine, attach Fill to a colour out of your Design Variables. That helps to keep the SVG tied for your world colour machine.

When the variable adjustments, any SVG the use of that variable can replace with it.
Keep an eye on Stroke
Stroke controls the description drawn alongside the SVG’s paths. The SVG Module provides you with controls for stroke colour, stroke width, and stroke taste. Use those settings for line icons, defined emblems, illustrated main points, and ornamental graphics that want a constant define.

Stroke colour can use a colour variable, similar to Fill. Stroke width will also be tied to a host variable. That turns the description thickness into a part of your design machine as a substitute of a one-off worth.
Since we’re the use of a easy line artwork representation, we skipped making use of a stroke.
Alter Sizing And Spacing
The Sizing staff controls the SVG module’s width, top, and responsive sizing habits. Use mounted values for easy icons. Use percentages or complicated devices when the SVG must scale with its container.

The Spacing staff controls margin and padding across the module. Use spacing to provide emblems, icons, and ornamental shapes room to respire with out converting the row or column settings.

Use Filters Moderately
Filters allow you to modify the visible output of the module. Commonplace choices come with hue rotation, saturation, brightness, distinction, and mix modes. Those will also be helpful for ornamental SVGs positioned over coloured backgrounds or layered sections.
Use filters sparsely for emblems and emblem marks. A clear out can exchange the semblance of a emblem asset in ways in which now not fit the unique id.
Become The Module
Become settings exchange the module’s presentation at the web page. You’ll scale, rotate, skew, or transfer the SVG module with out modifying the SVG report itself. Those controls impact the module wrapper, no longer each and every inside SVG trail.
This works neatly for ornamental shapes, background accents, and icons that might use a more potent overflow impact.
Upload Animation
Animation provides front results to the SVG module. You’ll select results like fade, slide, fold, roll, turn, jump, or zoom. Then you’ll modify timing, route, prolong, and length.

This may lend a hand upload delicate movement to UI icons and emblem components, in addition to to greater ornamental shapes, including pizzazz to the web site each time wanted.
Reuse SVG Kinds With Presets
After you have the SVG styled the best way you need, save the paintings as a preset. Divi 5 provides you with two helpful preset workflows right here: Possibility Staff Presets and Component Presets.
Use Possibility Staff Presets
Possibility Staff Presets save one staff of settings at a time. As an example, you’ll save a Sizing preset, Spacing preset, Field Shadow preset, Clear out preset, or different shared possibility staff. Then you’ll reuse that very same staff in any module that helps it.

To create one, hover over the choice staff header within the Design tab. Click on the preset icon, select New Preset From Present Kinds, title the preset, and put it aside. This comes in handy when you need the similar spacing, sizing, filters, shadows, or border types throughout other modules.
To reuse it on any module, merely make a selection the preset from the similar icon.

Use Component Presets
Component Presets save the whole SVG Module design. That incorporates Sizing, Spacing, Filters, Transforms, Animation, and any possibility presets already used throughout the module.
To create one, click on the preset menu on the most sensible proper of the module settings panel. Select New Preset From Present Kinds, title the preset, and put it aside.
![]()
Each and every new SVG Module can then load that complete design with a unmarried click on. To make use of it, click on the similar icon and make a selection the preset you simply created.

Take care of Native Overrides
A preset does no longer imply each SVG has to appear an identical. If one icon wishes a special Fill colour, set that worth immediately at the module. The override applies handiest to that SVG. The preset can nonetheless keep an eye on the opposite settings.

When the similar override seems on a number of SVGs, put it aside as a brand new preset. That provides you with a reusable variant as a substitute of a choice of one-off edits.
This workflow makes use of each Design Variables and Presets. Design Variables retailer the uncooked values, equivalent to emblem colours, stroke widths, and spacing values. Possibility Staff Presets reuse teams of settings that reference the ones values. Component Presets save the entire SVG Module design.
That creates a blank chain. Exchange a Design Variable, and the replace can float into the presets and modules that use it. That is a lot quicker than modifying each and every SVG manually throughout a big web site.
Take a look at The SVG Module In Divi 5 Lately!
SVGs are perfect for emblems, icons, line artwork, ornamental shapes, and customized illustrations that wish to keep crisp at any measurement. The SVG Module in Divi 5 offers the ones graphics a devoted house in Divi 5. You’ll paste SVG markup immediately, add SVG recordsdata when your web site helps them, taste Fill and Stroke within the Visible Builder, and reuse the design with presets.
You don’t want customized PHP to make use of the module. You handiest want WordPress SVG add beef up if you wish to use uploaded SVG recordsdata from the Media Library. For lots of workflows, pasting SVG code is sufficient. For asset libraries and client-managed graphics, use a depended on plugin to allow protected SVG uploads.
The publish Exploring Divi 5’s New SVG Module gave the impression first on Elegant Themes Blog.



0 Comments