Components in Divi 5 permit you to reuse a design, substitute it from one saved provide, and select which content material subject material each and every use can exchange.
We’ll assemble 3 supplier enjoying playing cards for Emblem Identification, Web Design, and Creative Trail. They proportion their spacing, image frames, typography, and button design, while each and every card has its private {photograph}, establish, description, and link.
We’ll save one card Staff as a Component, then customize its hooked up copies. You’ll moreover learn how to reset local values, detach ingredients, and prepare the saved provide.

What Are Components In Divi 5?
A Component is a reusable phase with a shared provide stored throughout the Divi Library. It can be a single module or a larger phase containing quite a few modules, comparable to a Staff, row, or section.
Each use of that Component on a internet web page is an instance. Bring to mind the availability since the design you take care of and the circumstances as its hooked up uses in every single place your internet web page.
For our supplier enjoying playing cards, the availability will control the card building, padding, rounded corners, image proportions, typography, and button design. Each instance can also be allowed to change its image, magnificence, establish, description, button label, and holiday spot.
The Evolution Of International Portions
Components extend Divi’s world components with further granular control over synchronization within nested layouts. You’ll expose a Heading module’s text within a reusable card while keeping its font, dimension, and colour managed by the use of the availability.
This makes one reusable design suitable for quite a few content material subject material variations. You don’t need a separate Component for Emblem Identification, Web Design, and Creative Trail when their enjoying playing cards proportion the an identical building.
Components, Presets, And Variables
Divi’s reusable design tools produce other roles:
- Elements reuse ingredients and layouts, in conjunction with their building and synchronized settings.
- Presets reuse collections of settings, comparable to a heading style or button design.
- Design Variables reuse specific individual values, comparable to a logo colour or spacing measurement.
You’ll use presets and variables within a Component. As an example, a button preset can give its styling while the Component lets each and every instance use different button text. Our knowledge to the use of Design Variables with Presets explains the styling foundation.
Previous than saving the main card, let’s distinguish the two bettering contexts you’ll use in every single place this tutorial.
Provide bettering will give you all your settings for the reusable design. First make a choice the module you want to change, then select Edit Component from the Component menu beside its establish. The availability editor incorporates Component Settings and bottom Save and Cancel controls. Red styling turns out in every provide and instance bettering, so use those controls to check your bettering context.

You employ this mode to change the shared card design and decide which fields can be edited locally. Saving a provide exchange asks you to verify that it’ll substitute circumstances during your internet web page. Take a look at the availability establish faster than confirming.
Edit An Instance To Change Its Allowed Fields
Opening a hooked up instance shows the fields its provide signifies that you’ll edit locally. A Heading would possibly show only its Content material subject material tab, for example, on account of its typography stays underneath provide control.
To return from provide bettering, save and ensure any provide changes, then close its settings window with the X. Select the child module throughout the internet web page instance over again. You don’t need to detach it to edit an allowed content material subject material field.
Select the comparable child module to hunt out its local fields. The outer Staff would possibly don’t have any editable settings even if its Image, Heading, Text, and Button modules come with editable content material subject material.
Changing the Web Design card’s establish in instance mode changes that card. Bettering the availability’s heading typography changes the synchronized typography during its hooked up circumstances.
Editable Fields Inherit Until You Override Them
Making a field editable allows customization; it doesn’t immediately give every instance a separate price. The field can continue inheriting its provide default until you enter an area override.
Our provide card starts with the establish Emblem Identification. A newly inserted instance can inherit that establish. Changing one instance to Web Design provides that instance its private heading while leaving the availability and other circumstances unchanged.
Resetting the local field gets rid of its override and restores inheritance. This is different from typing the existing provide text manually: an inherited field continues following long run provide changes.
Previous than You Get began
Use a Divi 5 arrange that includes Components and open a internet web page throughout the Visual Builder. You’ll practice at the side of a supplier card you already have or assemble the start Staff described underneath.
We’ll use Layers to choose the right kind packing containers and modules. Click on on its stacked-layers icon throughout the left builder sidebar, then use the arrows beside each and every layer to extend its children. If the ones controls are new to you, our information to including and organizing components explains the builder’s section, row, column, and module hierarchy.
Download And Import The Starter Layout
Download the starter construction to use at the side of the an identical design. It contains 3 unusual service-card Groups, and now not the usage of a Components or Slots. We’ll create the Component connections during the learning.
- Create a blank practice internet web page and open it throughout the Divi Visual Builder.
- Open the Internet web page Menu and select Import to open the internet web page’s Import & Export window.
Select the starter report and select the import settings in your blank practice internet web page:
- Click on on Make a selection File and make a choice components-starter-layout.json.
- On this blank practice internet web page, cross away Change Present Content material subject material checked. Leave Download Backup, Import Presets, Import Components, and Import To New Canvas unchecked.
- Click on on Import Layout. When the enjoying playing cards appear, save the internet web page with the builder’s top-right Save button.
Use the internet web page’s import controls for this report. The Component export and import controls lined later prepare saved belongings one after the other.
Use a blank internet web page for this choice import. If you wish to deal with an provide design, export a backup first or permit Import To New Canvas to import onto a separate canvas.
The imported construction contains Emblem Identification, Web Design, and Creative Trail as standalone enjoying playing cards. Keep all 3 until step 3, which explains when to remove the second and third Groups and alter them with hooked up circumstances.
Get in a position The Supplier-Card Example
The starter contains 3 unusual service-card Teams. Each holds an Image, magnificence Text, Heading, description Text, and Button module.
In Layers, building up the main card Column and to find the Emblem Identification Staff. We’ll save this Staff as our Component. Its background, spacing, and module styling can also be shared; the section introduction and three-column row keep unusual internet web page ingredients.

While you imported the starter, continue to step 1. On your private design, finish one card Staff first; our equivalent column heights information covers aligning enjoying playing cards of more than a few lengths.
How To Create And Use A Supplier Card Component
We’ll save the Emblem Identification Staff as our provide and make its content material subject material fields locally editable. Then we’ll insert it into the other two columns and customize those circumstances. Keep their visual settings synchronized so all 3 enjoying playing cards proportion one maintained design.
Terminology: A field is one setting, comparable to Heading text or Button Link URL. Making it locally editable allows an instance to use its private price. It does no longer detach the module or make its other settings independent.
1. Save The Card Staff As A Component
Open Layers throughout the builder sidebar. Make larger the supplier section, its card row, and the main column. Select the Staff that contains the Emblem Identification card’s 5 modules.
Click on at the Staff’s layer to open its settings. At the top of that window, click on at the menu beside the phase establish and select Save As Component.

Throughout the Library window, establish the object Supplier Card and keep Save As Component enabled. Save the Staff as one reusable products; you don’t need to save its child modules as separate Library items for this tutorial.
Click on on Save To Library. Divi creates the shared provide and connects the Staff already on the internet web page to it.

Be sure you made up our minds at the Staff. Saving all of the section would moreover include the arrival and surrounding card construction, which is a larger reusable phase than we’d like correct right here.
2. Make The Card’s Content material subject material Editable
In Layers, make a choice the Image module during the primary card Staff. Open its Component menu and select Edit Component, then building up Content material subject material > Image. You these days are bettering that module’s provide settings.
When you select another module in Layers, check out its bettering context over again. That selection opens the module’s page-instance settings. Save and ensure each and every provide exchange faster than moving to a couple different module, then select Edit Component for the next module. This helps to keep the synchronization controls available for every field you need to expose.
Use the synchronization control beside the Image field, categorized Make this field editable on phase circumstances. Hover over the sphere to turn its controls. This allows each and every card to switch its {photograph} while keeping the availability’s image styling.
After enabling local bettering, the control offers Use the availability phase price for this field. Leave that selection untouched; clicking it would synchronize the sphere over again. The screenshot shows the sphere with local bettering enabled.

Alt text describes {a photograph} for other people the usage of show readers. Our occasion devices it through Customized Attributes, so each and every choice {photograph} needs an an identical description.
Throughout the provide Image module, open Complicated > Attributes. If an alt function already exists, click on on its settings icon. Otherwise, click on on Add Function and create one with the ones settings:
- Admin Label: Image Alt.
- Purpose Element: Image.
- Function Establish: alt.
- Function Value: An overview of the availability {photograph}.
The label identifies this function throughout the builder; the alt establish provides it its function. Keep one alt function for the Image phase.

Close the Edit Function window the usage of its X. Once more throughout the Image module’s Attributes settings, make the Attributes collection editable on circumstances. This control belongs to the collection, not to the Function Value during the smaller bettering window.

Save and ensure the Image module’s provide changes the usage of the bottom Save button. Next, make a choice the category Text module in Layers and select Edit Component from its Component menu. Open Content material subject material > Text and make Body editable the usage of the an identical synchronization control.
Body is the Text module’s content material subject material editor. Use its Visual tab to enter unusual text, or its Text tab to inspect HTML. Save and ensure this provide exchange faster than settling at the following module.

Select the Heading module in Layers, select Edit Component, and open Content material subject material > Text. Make its Heading field editable, then save and ensure the availability exchange.

Select the description Text module, select Edit Component, and make its Body field editable underneath Content material subject material > Text. Save and ensure faster than settling at the Button module. In that module’s Edit Component settings, expose Button Text underneath Content material subject material > Text and Button Link URL underneath Content material subject material > Link.

You should now have the ones locally editable fields:
- Image: Image and the Attributes collection containing Image Alt.
- Magnificence Text: Body.
- Heading: Heading.
- Description Text: Body.
- Button: Button Text and Button Link URL.
Leave the Staff’s background, padding, corners, shadow, and construction synchronized. Keep image proportions, typography, and button styling synchronized too. We would like different content material subject material within the an identical card design.
Save the Button module’s provide changes with the bottom Save button, then click on on Check when Divi explains that the substitute affects circumstances during your internet web page. This saves the two Button fields you merely made editable.

3. Insert Each different Card From The Library
Close the Component provide settings after saving and confirming. While you imported the starter construction, remove the unusual card Groups from the second and third columns in Layers. Keep the columns themselves and the main card Staff that you simply saved since the Supplier Card Component.
Select the now-empty 2nd card Column, open Content material subject material > Portions, and click on on Add Element. Throughout the picker, select Add From Library and to find Supplier Card in My Library.
Get began with the Column’s insertion control, fairly than one during the primary card Staff. The new Staff belongs directly within its private column.

Open the object’s details and click on on Use This Module. The saved Staff and its 5 child modules are inserted together as another instance of Supplier Card.

Repeat this throughout the empty third column. Keep one card Staff in step with column. The now not necessary conversion workflow underneath explains recommendations on connect an acceptable unusual Staff as a substitute of fixing it.
You’ll moreover reproduction a hooked up Staff on the internet web page for another instance. A internet web page reproduction carries its provide local values, so evaluation and change those values for the new supplier. Duplicating an instance helps to keep it hooked up to the an identical provide.
4. Customize The Web Design Card
Select the Image module beneath the second card Staff in Layers. The layer labels may nevertheless use the availability’s Emblem Identification names; use their position beneath the second Column to identify the Web Design card. You should be bettering the internet web page instance, without choosing Edit Component. Beneath Content material subject material > Image, click on on Edit on the image preview. Make a selection an appropriate internet web page or laptop {photograph} from your Media Library, or use Insert From URL, then click on on Insert Into Internet web page. Keep the image frame inherited from the availability.

For its alt text, open Complicated > Attributes. If Image Alt is listed, click on on its settings icon and change Function Value to give an explanation for the new {photograph}. If no get right of entry to is listed, click on on Add Function, select alt, and use the ones settings:
- Admin Label: Image Alt.
- Purpose Element: Image.
- Function Establish: alt.
- Function Value: An overview of the opposite {photograph}.
Close the function window after bettering. Keep only one alt function focused on Image; remove any reproduction get right of entry to faster than continuing.
For a pc {photograph}, use an overview comparable to Laptop on a wooden table appearing a mountain landscape. Make a selection words that describe your own choice image.

Select the category Text module and enter 02 / DIGITAL in Body. Then make a choice its Heading module and enter Web Design in Heading.

Select the description Text module and enter Thoughtful internet websites built spherical your goals. in Body.

Select the Button module and enter Uncover internet websites in Button Text. Open Link and enter your actual Web Design supplier internet web page URL in Button Link URL. While you use an anchor, be certain that its matching ID exists on the internet web page.

Our demonstration uses #web-design with an an identical anchor on the internet web page. Use your supplier internet web page’s URL for a card that are supposed to open another internet web page. If you want to have the an identical anchor conduct, practice our anchor hyperlinks instructional to create its holiday spot first.

The ones values belong to the second instance. Its settings window shows the locally editable Heading field, while the card’s shared design stays hooked up.

Close the module settings the usage of the X and click on on Save at the top right kind of the builder to save lots of a number of the internet web page. You don’t use the availability’s confirmation dialog for the ones local changes.
5. Customize The Creative Trail Card
Repeat the instance-editing process for the third card, the usage of the ones values:
- Image: A distinct {photograph} appropriate to creative artwork, with its private descriptive alt text.
- Magnificence: 03 / CONTENT.
- Heading: Creative Trail.
- Description: One cohesive vision during every touchpoint.
- Button Text: Uncover creative.
- Button Link URL: Your Creative Trail supplier internet web page.
The principle card can keep the availability defaults for Emblem Identification. The second and third enjoying playing cards now show off local content material subject material variations within the an identical shared design.
Save the internet web page over again after customizing the third card. There are two save operations in this workflow:
- Provide changes: Use Save at the bottom of the Component editor, then confirm the site-wide substitute.
- Internet web page changes: Use Save at the top right kind of the builder to retain instance content material subject material and the internet web page construction.
Select a hooked up card’s Button module in Layers, then select Edit Component from that module’s Component menu. Change its shared button background from charcoal to a burnt orange that matches the section’s accent colour.
Open Design > Button > Background and set the button background colour to #B94F32. Keep this design field synchronized. Save and ensure the availability substitute.

All 3 hooked up enjoying playing cards now download the an identical button styling. Their local content material subject material and button URLs stay intact on account of those fields allow instance bettering and retain their overrides.

You’ll now substitute the shared card design without bettering each and every supplier’s content material subject material over again.
7. Take a look at Tablet And Phone Layouts
Use the builder’s tablet and get in touch with previews to inspect all your section. Our card row stacks into one column on smaller displays, and each and every Staff fills its available column width.
The row’s responsive column affiliation belongs to the encircling internet web page construction. The card’s padding, image frame, and typography belong to its Component. Take a look at every when adapting this situation to a couple different internet web page.

Take a look at for astonishing text wrapping the usage of each and every card’s actual content material subject material; the availability’s shortest default text won’t expose every spacing downside. Save responsive provide changes all through the Component controls, then save any internet web page construction changes on the internet web page.
Reset A Local Value To The Provide Default
An instance override is useful when a card needs different content material subject material. While you later want that field to use the availability over again, reset it.
- Open the Web Design card’s Heading module in instance mode.
- Make larger Content material subject material > Text and to find Heading.
- Use the sphere’s Reset control.
- The heading returns to the availability’s Emblem Identification default.

The field now inherits long run provide changes. For this tutorial, enter Web Design over again to restore the service-specific establish faster than saving the internet web page.
Changing a provide field once more to synchronized is a broader movement. It makes the availability authoritative for that field during hooked up circumstances, so evaluation provide local content material subject material faster than changing synchronization laws.
Connect A Appropriate Present Card
You’ll have already were given quite a few unusual service-card Groups on a internet web page. Divi can also be providing an provide Component as a conversion variety when the selected phase has an acceptable building.
- Select the unusual Staff you want to attach.
- Open the menu beside its establish throughout the settings window.
- Beneath Convert To Component, select Supplier Card.
- Analysis every locally editable field and alter any content material subject material that adopted a provide default.
- Save the internet web page.

Conversion connects the Staff to the chosen provide. Analysis every editable field in a while, in conjunction with the image and button URL. A value from the unusual Staff may adopt the availability default as a substitute of becoming an area override. If the availability isn’t offered, insert it from the Library and turn your content material subject material into its editable fields.
Detach One Element Or The Whole Component
Detaching is useful when an element should turn into independently editable. Make a selection the smallest scope that matches the exchange.
Detach A Child Module
As an example, suppose only the Creative Trail heading needs different typography. Correct-click its Heading module in Layers and select Detach From Component.

That Heading becomes locally editable with its entire settings, in conjunction with Design and Complicated. The rest of the card stays hooked up to Supplier Card.
To reconnect the an identical child module, right-click it and select Attach To Component. Analysis the result, since reconnecting returns synchronized settings to the availability’s control.

Detach The Complete Card
Correct-click the outer card Staff and select Detach Component to make all of the card an unusual internet web page phase.

The detached card helps to keep its provide glance and content material subject material, alternatively long run provide updates now not take care of it. Use this for an intentional one-off design. Keep ordinary enjoying playing cards hooked up when they should continue sharing updates.
Arrange Your Component Property
Open the Components panel from the builder sidebar to control saved belongings. This is different from Layers: Layers shows ingredients at this time internet web page, while Components lists reusable belongings.
Establish And Preview The Provide
Make a selection Supplier Card to edit its provide. Beneath Component Settings, give it a descriptive establish. Use the preview icon beside the availability establish in its settings header to inspect the saved design and default content material subject material.

A Library establish identifies the reusable provide. A local heading comparable to Web Design identifies a particular card’s content material subject material. Changing one does no longer require changing the other.
Replica A Provide For A Separate Design
Use the availability’s Replica control throughout the Components panel when you want a separate reusable design. Rename the reproduction, for example Supplier Card — Variant, and put it aside.

Duplicating the availability creates another Component you’ll take care of independently. Duplicating an instance on a internet web page creates another hooked up use of the an identical provide. Choose between them in keeping with whether or not or now not the new card should proportion long run design updates.
Export And Import Components
Open Import & Export from the Components panel. In Export, give the report a recognizable establish, comparable to Supplier Card Collection, and click on on Export Components to procure the JSON report.

On the holiday spot site, open the an identical window’s Import tab, select the exported report, evaluation the Import Presets selection, and click on on Import Components. At the side of presets is said when the exported designs depend on them.

Analysis the imported design on the holiday spot site, in conjunction with images and links. Component portability and Design Variable portability are separate parts of moving a complete design gadget.
Where Components Are Most Useful
The supplier card is one smart occasion. The an identical method works each and every time quite a few uses should proportion a building while allowing made up our minds on content material subject material to switch:
- Team of workers enjoying playing cards: Shared {photograph} framing and typography with different names, roles, and biographies.
- Testimonials: Shared quote styling with different quotations and purchaser details.
- Promotional sections: Shared construction and button design with different headlines, images, and places.
- Pricing enjoying playing cards: Shared visual building with editable plan names, prices, and descriptions.
- Reusable internet web page sections: A maintained section design with moderately decided on local content material subject material fields.
Components can be part of a much broader gadget the usage of presets and variables. Our knowledge to constructing a design machine with nested and stacked presets covers the styling facet of that workflow.
Tips For A Clear Component Workflow
- Finish one useful occasion first. Unravel spacing, button design, and responsive conduct faster than reusing it extensively.
- Divulge the fields that are supposed to vary. For the ones enjoying playing cards, that means content material subject material and places while the card design stays shared.
- Keep provide defaults useful. A newly inserted instance should come up with a sensible place to begin.
- Take a look at the bettering context. Provide changes have an effect on hooked up uses; instance changes have an effect on the selected use’s editable fields.
- Analysis synchronization changes. Returning a field to offer control can exchange local values.
- Give each and every image right kind alt text. Converting {a photograph} moreover requires checking its description.
- Check out the longest precise content material subject material. A design that fits Emblem Identification nevertheless needs to care for Creative Trail.
- Save every contexts when crucial. Check provide updates, then save page-specific content material subject material and construction changes.
Assemble Reusable Designs With Components
Our 3 supplier enjoying playing cards proportion their construction, image frames, spacing, typography, and button styling. Their images, titles, descriptions, and places can vary. One provide substitute maintains their not unusual design while each and every card continues presenting its private supplier.
Get began with an element you already repeat, put it aside as a Component, and make its variable content material subject material editable. For added background, be informed the Elements unlock announcement, or uncover the rest of Divi’s website-building gear.
The post Exploring Elements In Divi 5 gave the impression first on Sublime Topics Weblog.





0 Comments