How To Add CSS Classes And ID Attributes In Divi 5
In older versions of Divi, you’d find separate fields in the Advanced tab to add CSS IDs and Classes. In Divi 5 , those fields are no longer there. But nothing’s actually missing. Everything moved into Attributes under the same Advanced tab. You can still add IDs and Classes exactly like before, plus any other custom 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 adding CSS classes and ID attributes using Custom Attributes . What Are Custom Attributes In Divi 5 Custom Attributes let you add any HTML attribute, like IDs, classes, ARIA labels, or data tags, directly to your Divi elements from the builder. It’s a way to control how elements behave, get styled, or get read by browsers and assistive technologies. In older Divi versions, you had dedicated fields for CSS ID & Classes . They handled basic styling needs, but that’s all they could do. Now, there’s a dropdown Attributes o...