Set Custom CSS IDs for Individual Divi Accordion Items

Written by Dan Mossop

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion sections, enhancing both the look and functionality of your site. In this guide we show you how to assign a custom CSS ID to individual accordion items, enabling more advanced customization and usability.

Set Custom CSS IDs for Individual Divi Accordion Items using the Divi Booster Plugin

This method demonstrates how to assign a unique CSS ID to a specific Divi Accordion item by utilizing the Divi Booster plugin. It allows you to precisely target individual accordion items for advanced styling or anchor linking, a capability not available in standard Divi installations.

Open the Accordion Item's Advanced Settings

To begin, locate the Accordion module on your page and open its settings. Click on the first accordion item you wish to customize—this will expand its individual settings. Next, navigate to the 'Advanced' tab at the top, and then expand the 'CSS ID & Classes' section. Here, you'll be able to add custom identifiers for this particular accordion item.

Assign a Custom CSS ID

Within the expanded 'CSS ID & Classes' section, you'll see a field labeled 'CSS ID.' Enter your desired ID here (for example, 'custom-accordion-id'). This unique identifier can now be used in your CSS targeting or when creating anchor links in your content.

Publish and View Your Changes

Once you have entered your custom CSS ID, make sure to save your changes. Click the 'Publish' button in the Divi Builder to make your new CSS ID live. You can now visit your page on the front end to confirm that the Accordion item appears as intended and is ready for advanced customization or linking.

Conclusion

With just a couple of tweaks in the Divi Builder, you can now add unique CSS IDs to individual Accordion items—unlocking more flexible styling and anchor link options for your Divi site!

We may earn a commission when you visit links on our website.

Take Control of Your Divi Accordion Design

With Divi Booster, you can assign custom CSS IDs to individual accordion items, enabling precise styling and advanced customization options not available in standard Divi. Perfect your site's design effortlessly.

Latest Posts

Top (or Bottom) Align Divi Icon List Module Icons

When Icon List items wrap onto multiple lines, the default icon alignment can make the icon appear vertically centered next to the text, which may look unbalanced or harder to scan. Setting the icons to align at the top creates a cleaner, more consistent...

Make Divi Button Modules Full Width with Centered Content

This configuration makes a Divi button stretch to the full width of its container while keeping its label neatly centered, creating a bold, edge-to-edge call-to-action. You might want this for hero sections, pricing tables, or any layout where a standard-sized button...

Fix the Flickr Typo in the Divi Social Media Follow Module

Sometimes it's the small things that make the difference... there is a minor typo in the Divi Social Media Follow module that was present in Divi 4, and (currently) remains in Divi 5. Specifically, the tooltip for Flickr is misspelled as "Flikr". Here's how to fix...

Add a Frosted-Glass Background Blur in Divi

Give your Divi layouts a polished, glassmorphism look by blurring the content behind a semi‑transparent Divi section, row or module. This effect enhances readability over busy or textured backgrounds while preserving the visual impact of your imagery and layout. In...

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

Compatible with

Divi 5

Divi 4

Get this feature

This feature is included in the following plugins:

Divi Booster

About Divi Booster