Divi 5 is taking shape, and each and every step against a whole unencumber packs a lot more possibilities than without equal. Our staff is officially in bug-bash mode and making sure what’s not too long ago available is as cast as possible. Similtaneously that hardening continues, we’ve introduced a few choices that continue to show how Divi 5 is built for the future of web site development.
Customized Attributes is one of those choices. It’ll seem to be a tiny Selection Body of workers throughout the Sophisticated tab (that’s what it’s), however it indubitably packs a large number of punch. As a substitute of most effective assigning classes and IDs, you’ll have the ability to now assign any reputable HTML feature and attach it to the fitting part of any Module.
When you don’t know what that implies, we’ll have some examples and explainers underneath to provide an explanation for. This can be a excellent first step in Divi’s improving Accessibility — it most effective gets upper from proper right here.
Custom designed Attributes For All Divi Parts
It’s essential to note that the attributes you’ll have the ability to now assign don’t appear to be Divi-specific. The ones are HTML attributes that are standard for all web websites. As a substitute of the UI gatekeeping which ones you’ll have the ability to practice (and where), this new feature means that you can do what you need to do, on the element (or sub-element) you need to do it on.
The new Attributes Selection Body of workers is located exactly the position CSS Elegance and ID was once as soon as. To get entry to it, click on on on the Module you need to enrich, move to its Sophisticated tab, and then “Add Function”.
Migration bear in mind: When you’ve used the legacy Elegance & ID settings in earlier diversifications, those values are mechanically migrated into the new Attributes staff. So must you’re wondering where your classes and IDs went, you’ll to seek out them listed there; no data is out of place.

You’ve a few fields to fill out when you add a brand spanking new one. The Admin Label is just an easy technique to determine your setting so that you’ll have the ability to merely recognize it later.

The Purpose Phase implies that you’ll be able to make a choice the Module itself or, in numerous cases, any similar sub-element of that Module. So, for example, with the Icon List Module, you’ll have the ability to make a choice all of the Module, the Icon, or the List Products. With a Text Module, you’ll have the ability to objective the content material subject material or all of the Module. As a result of this when using CSS Classes, you’ll have the ability to practice them with precision.

Next, you’ve gotten the Function Establish and its corresponding Value. The determine is the feature type, and the value is its unique setting. There are numerous reputable names, which we’ll get into throughout the next section.

Most reputable Function Names also have reputable Function Values. Some attributes allow for custom-named or worded values. It merely depends upon which feature you could be using.

Maximum incessantly, when an Function is in a position in HTML, it sort of feels like this with the determine and an identical sign, with the value in quotes:

After all, the ones Custom designed Attributes can belong to an Selection Body of workers Preset, so it’s possible to save some configurations of a couple of attributes inside of it.

So, when you create a equivalent element later, you’ll have the ability to practice the equivalent accessibility and semantic underpinnings.
Custom designed Attributes You Can Use
The web uses a large number of attributes. And each and every type is used for specific reasons.
What Are HTML Attributes?
Attributes are a semantic means of describing your HTML portions that is understandable and machine-readable. Many HTML attributes moreover come with unique choices throughout the browser. Attributes can be utilized to help assistive technologies describe custom portions for your internet web page to make it additional in the market.
Aria Attributes
ARIA labels tell assistive technologies what an element is and what it’s used for. They are able to moreover explain the relationship of one products to each and every different.
- aria-label supplies a short lived, invisible determine. Use it when no text is used on an element.
- aria-labelledby problems to visible text that names the thing. Need this whilst you’ll have the ability to.
- aria-describedby problems to helper text. Use it for hints or warnings.
- aria-controls links a purpose to its objective (bear in mind the “s”).
ARIA labels can also disclose states.
- aria-expanded shows the open or closed state of a toggle.
- aria-haspopup indicates a popup is available.
You don’t need to overuse ARIA labels, on the other hand indubitably use them when the HTML for your internet web page can’t particular the conduct to assistive technologies.

Global HTML Attributes
- identity assigns an anchor objective (for soar links). It may be used to style with CSS. IDs are also sought after for using aria-controls.
- class assigns the element a class you’ll have the ability to objective with CSS.
- determine supplies text for a browser-styled tooltip on hovering the element with the determine (not as in the market as serve as=”tooltip”).
- rel accepts the following values: noopener, noreferrer, backed, and ugc. Use it with external links (for search engine marketing and protection purposes).
- rel could also be for setting portions to preconnect, prefetch, and preload, on the other hand that is for another time.
- dir accepts ltr/rtl/auto for setting the language trail for the required element.

Serve as Attributes
Serve as attributes explain what type of issue something is, in particular when the HTML element tag is a generic element (like
- button to suggest links that run actions on the internet web page.
- navigation for any staff of links. Helpful must you create a menu navigation from a repeater loop instead of using the Menu Module.
- main to assign the main content material subject material container. Use once, and most effective on the main area. Divi mechanically supplies this in numerous cases, so check that you need it quicker than you use it.
- space for a notable section that desires a name. Pair it with an aria-label like “Featured Categories”.
- report and listitem are helpful for marking out a whole report and each and every separate products in that report.
- dialog / alertdialog are used for modals and popups.
- tooltip are nice for rising default browser tooltips.
- presentation / none to tell show readers that something is simplest decorative.

To use any of the ones, set the Function determine as “serve as” and the Function value for the reason that bolded words above.
Misc. Attributes
The ones are a few other attributes you’ll have the ability to use in an effort to upload specificity to your designs. In spite of everything, there are many additional, on the other hand this can be a good get began.
- data-* is used in an effort to upload cast hooks for analytics, tests, and JS.
- tabindex to make custom triggers focusable. Use tabindex=”0&Top; for natural tab order.
- lang to mark blocks of translated content material subject material. Example: lang=”es” on a Quote Module.
- fetchpriority is used to nudge the browser to fetch a key image first. Use only if what you’re doing.

Useful Attributes To Use In Your Divi Builds
The ones aren’t the only right kind ways to use Custom designed Attributes, on the other hand they’re a good first place to begin out. We’ll cover a few frequently used Divi Modules and the way in which we will add some Custom designed Attributes to improve semantic presentation and accessibility.
1. Attributes To Add To A Button Module
Links and Buttons are pivotal for a healthy internet. Together with make a choice attributes to them makes a big difference to these simple portions’ usability (and every now and then even function).
Usual Links
Divi’s Button Modules are defined semantically as a link. No Custom designed Function is sought after must you employ a Button Module to send a client to each and every different internet web page. Even though your link is an anchor link (e.g., #testimonials) or has the “download” feature, you’re going to stick the Button Module as a link.
<img deciphering=”async” loading=”lazy” class=”with-border aligncenter wp-image-298703 size-full” src=”https://www.elegantthemes.com/blog/wp-content/uploads/2025/09/Divi-Button-Module-by-Default-Uses-a-tag.jpg” alt=”Divi Button Module by means of Default Uses Tag” width=”1880&Top; top=”813&Top; />
Buttons Are For On-Internet web page Actions
On the other hand, if the Button Module is used to perform an movement on the internet web page (it does not navigate to each and every different section/internet web page/internet web page), it should be marked as a button. If you are running JS from an onClick Fit or using a Button Module to open a pop-up using Interactions, you need in an effort to upload a button serve as to it. This is essential for Contact Form and Make a decision-in Modules, where the buttons perform an movement and don’t navigate the shopper in different places.
Go to its Settings > Sophisticated tab and under Attributes, Add New:
- Purpose Phase: Module, Function Establish: “serve as”, and Function Value: “button”
This may increasingly more and more denote the Button Module, not as a link, on the other hand as a button.
Download Link
Each different helpful issue you’ll have the ability to now do is in a position a Button Module with the “download” feature. This tells a browser to procure the attached file instead of opening it. The link will want to move to a supported file (like .pdf) and not a regular webpage. Don’t add the serve as=”button” to this, on the other hand slightly add this feature:
- Purpose Phase: Module, Function Establish: “download”, and Function Value: *move away blank*
- Purpose Phase: Module, Function Establish: “aria-label”, and Function Value: “Download Fiscal three hundred and sixty five days Record (PDF)” or regardless of describes the report being downloaded
2. Attributes To Add To Icon List Module Items
The problem is {{that a}} show reader will try to announce the icon quicker than the text, which creates a sophisticated experience (“Icon Establish,” then “Text Content material subject material”). If the icon were a checkmark, they’d concentrate “check out mark” quicker than every single products, which becomes repetitive and hectic. In this case, it will be told, “Umbrella Umbrella, Volleyball Beach Video video games, Hotdog Lunch,” despite the fact that the icons are additional decorative than descriptive.
![]()
Given that icon is just about all the time decorative in a list like this, the most productive practice is to hide it from assistive technology. When you add this feature to the daddy or mom Icon List Module, it’ll practice to the entire List Items. When you apply it to a single List Products, then it does not affect the other report items.
- Purpose Phase: Icon, Function Establish: “aria-hidden”, and Function Value: “true”
This feature tells show readers to put out of your mind concerning the icon completely. The shopper will simply concentrate the clean, intended text of the report products, creating a much better experience. This is a helpful feature in an effort to upload to any Divi Module that includes a decorative icon.
![]()
3. Attributes To Add To Your Loops
Loops without end render taking part in playing cards inside of generic wrappers (like a
Add attributes to the Dad or mum Container of the Looped Module/Container.
- Purpose Phase: Looped Container — Function Establish: “serve as” — Function Value: “report”
This tells consumers that what comes inside of it is a report of items that proportion a context. Then, you’ll have the ability to move to the element that is set to Loop. On that Looped element, add this feature:
- Purpose Phase: Looped Phase — Function Establish: “serve as” — Function Value: “listitem”
This shows that each and every products inside of your loop is within the equivalent report.
As you’ll have the ability to see from the internet web page’s HTML, we’ve got a semantic report with report items without changing the similar HTML element tag.

Take a look at Together with Custom designed Attributes In Divi 5 Nowadays
Divi already uses slightly slightly of of Semantic HTML. Read about exactly what’s being used for your internet web page quicker than making improvements with custom attributes. From there, get began with landmark roles to offer your internet web page one of the vital semantic context.
When you find yourself together with the equivalent custom attributes to equivalent kinds of portions, you’ll have the ability to create Selection Body of workers Presets of the ones and then merely assign them as sought after. All in all, this feature offers such a lot. It shows that Divi 5 is popping right into a additional flexible and powerful builder, giving consumers every option to create great web websites.
To check out Customized Attributes yourself, use the latest unencumber of Divi 5. Take a look at it on a brand spanking new web site, or take a look at our Demo to get started in short.
The put up The entirety You Want To Know About Divi 5’s Customized Attributes appeared first on Sublime Issues Weblog.
Contents
- 1 Custom designed Attributes For All Divi Parts
- 2 Custom designed Attributes You Can Use
- 3 Useful Attributes To Use In Your Divi Builds
- 4 Take a look at Together with Custom designed Attributes In Divi 5 Nowadays
- 5 9 Highest AI Equipment for Your Occupation in 2024 (Most sensible Choices)
- 6 Repair ‘iPhone Unavailable’ With or With out Laptop
- 7 AI Media Making plans: 6 Skilled Techniques You Cannot Forget about


0 Comments