How To Upload CSS Categories And ID Attributes In Divi 5

by | Oct 25, 2025 | Etcetera | 0 comments

In older diversifications of Divi, you’d to find separate fields inside the Complicated tab with the intention to upload CSS IDs and Classes. In Divi 5, those fields are actually no longer there.

On the other hand no longer anything else’s in truth missing. The whole lot moved into Attributes beneath the identical Complicated tab. You’ll be capable to however add IDs and Classes exactly like previous to, plus each different custom designed attributes you need. The difference is how it’s organized: one unified space instead of scattered fields.

In this post, we’ll walk you through together with CSS classes and ID attributes using Customized Attributes.

What Are Custom designed Attributes In Divi 5

Custom designed Attributes help you add any HTML feature, like IDs, classes, ARIA labels, or knowledge tags, immediately for your Divi elements from the builder. It’s a approach to control how elements behave, get styled, or get be informed by means of browsers and assistive technologies.

In older Divi diversifications, you had trustworthy fields for CSS ID & Classes. They handled basic styling needs, alternatively that’s all they’ll do.

CSS ID & Classes in older divi versions

Now, there’s a dropdown Attributes selection inside the Complicated tab. Open it up and also you’ll add any HTML feature to a little, row, column, or module. IDs and classes however artwork the identical manner, alternatively you’re no longer limited to just those two.

attributes option in new divi versions

Click on on Add Feature to open the panel where you’ll create, edit, or remove attributes. You’ll be ready to choose the type of feature inside the dropdown or manually enter a custom designed feature.

See also  Torque Toons: Wapuu Panda Fusion

add attribute

Each feature needs a Identify (identity, magnificence, aria-label, or data-info) and a Price, comparable to hero-section or button-large. You’ll be capable to moreover add an Admin Label in your non-public reference and make a selection a Objective Phase to control whether or not or no longer the feature applies to the module itself or specific items inside of it.

Each time you fill those in, Divi writes the feature immediately into the HTML. For instance, setting the Feature Identify to identity and the Feature Price to hero-section produces this:

<div identity="hero-section"></div>

Previous IDs and classes, you’ll add accessibility attributes like aria-label, tracking codes with data-*, or SEO elements like rel and establish. Little need for third-party plugins or custom designed code snippets to make your website further available or add tracking. You deal with it immediately inside the builder, retaining the whole thing in one place while giving you upper control over how elements artwork with CSS, JavaScript, and assistive technologies.

Why We Modified the CSS ID & Classes Chance

Quicker than, CSS IDs and Classes sat in their own separate fields. They worked great, alternatively together with anything else meant custom designed code or workarounds. Consolidating the whole thing into one Attributes panel means you’re no longer having a look through different sections to make use of what you need. You notice all of your attributes in one spot, which makes managing them simpler and keeps your workflow consistent.

For anyone happy with HTML, this moreover feels further natural. You’re working with attributes the way in which wherein they in truth exist in code, merely without leaving the visual builder.

✅ Don’t Worry — Your Old-fashioned IDs And Classes Are However There ✅

For those who added IDs or classes in older Divi diversifications, you’re going to no longer lose them. When you change to Divi 5, those values are mapped into the new Attributes panel mechanically. No longer anything else is erased, and your front end does no longer trade.

See also  How Entrepreneurs Collaborate Successfully Throughout Departments [According to HubSpot Marketing Leaders]

Proper right here’s what to seize:

  • Where to hunt out them: Open the element, go to Complicated > Attributes. You will see your earlier entries listed with Identify set to identity or magnificence.
  • Your CSS and JS however artwork: Any selectors that referenced those IDs or classes continue to make use of without edits.
  • Imports and Presets: Old-fashioned layouts, Theme Builder templates, and world presets keep their IDs/classes. They appear inside the Attributes record the moment you open them in Divi 5.
  • Rapid check: If styling seems off, confirm the Objective Phase is what you expect. Most elements default to the module wrapper. If your CSS was geared toward an within element, set the target accordingly.

Be informed The entirety About Divi 5’s Customized Attributes

Using Custom designed Attributes To Add CSS Classes & ID Attributes

Together with IDs and Classes in Divi 5 works the identical manner it always has. You’ll be capable to apply them to any module, section, or row. Let’s walk through each and every.

Together with An ID Feature

An ID targets one specific element on a internet web page. You’d use it for something that most effective turns out once, like the main hero image, a newsletter signup form, or the footer contact section.

For this example, we’ll label an image for the reason that hero image of the internet web page.

id attribute example

Click on on on the image, go to Complicated > Attributes, and click on on Add Feature. Set the Feature Identify to identity and the Feature Price to hero-image. Then make a selection Image for the reason that Objective Phase so the ID applies to the image itself, no longer the module wrapper.

declare id hero image

Save and preview the internet web page.

For those who take a look at the element in your browser, you’ll see the ID hooked as much as the image inside the HTML.

See also  How one can Upload Social Media Icons to Your Electronic mail Signature [+ Free Resources]

value assigned in backend

Together with A Class Feature

By contrast to an ID, a class can also be carried out to multiple elements. This makes it useful when you wish to have the identical styling or behavior all through various items immediately, like all of your CTA buttons, testimonial enjoying playing cards, or pricing tables.

Proper right here, we’ll assign a class to each CTA button on the internet web page in order that they share the identical styling. Open the main button, go to Complicated > Attributes, and set the Feature Identify to magnificence and the Feature Price to cta-button.

CTA button class

Then repeat the identical steps for each button you wish to have to include inside the cta-button magnificence.

adding same class to other buttons on page

Once all the buttons share the identical magnificence, you’ll style them together using the internet web page’s Complicated > Custom designed CSS panel. Any changes you’re making to that magnificence will apply to each button immediately.

Check out Custom designed Attributes In Divi 5 Nowadays

Custom designed Attributes don’t reinvent IDs and classes. They simply put the whole thing you need in one predictable spot. The Attributes panel keeps it organized in order that you don’t have to jump between fields or write workarounds to get problems carried out.

For those who haven’t already, download the newest type of Divi 5 to begin out using Custom designed Attributes together with all the other updates 👇🏻

The post How To Upload CSS Categories And ID Attributes In Divi 5 appeared first on Chic Subject matters Weblog.

WordPress Web Design

[ continue ]

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!