All Collections
Divi Documentation
Customizing Divi
How to Increase the Toggle And Accordion Module's Clickable Area
How to Increase the Toggle And Accordion Module's Clickable Area

Increase the maxium height of the Clickable Area for the Accordion and Toggle Module.

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

By default, the clickable area of the Accordion and Toggle modules is set to be the height of the title. Clicking outside the default clickable area will not open/close the Accordion or Toggle Module.

We can increase the entire Clickable area using custom CSS code.

Increase the Clickable Area for the Accordion Module

  1. Open the Accordion Settings

  2. Go to Advanced Tab > Custom CSS > Toggle and add this CSS rule:

    padding: 0;

  3. Go to Advanced Tab > Custom CSS > Toggle Title and add this CSS rule:

    padding: 20px 20px 20px 20px!important;

  4. Go to Advanced Tab > Custom CSS > Toggle Icon and add this CSS rule:

    padding-right: 20px;

  5. Go to Advanced Tab > Custom CSS > Toggle Content and add this CSS rule:

    padding: 0 20px 20px 20px;

Increase the Clickable Area for the Accordion Module

Increase the Clickable Area for the Toggle Module

  1. Open the Toggle's Module Settings

  2. Go to Advanced Tab > Custom CSS > Main Element and add this CSS rule:

    padding: 0;

  3. Go to Advanced Tab > Custom CSS > Toggle Title and add this CSS rule:

    padding: 20px!important;

  4. Go to Advanced Tab > Custom CSS > Toggle Icon and add this CSS rule:

    padding-right: 20px;

  5. Go to Advanced Tab > Custom CSS > Toggle Content and add this CSS rule:

    padding: 0 20px 20px 20px;

Did this answer your question?