I have to admit, I felt a little like Khan on this one:


Google is NOT my friend.

Not today, at least — nor, apparently, anybody else’s. Searches in multiple Divi user groups made it clear that I wasn’t the only one looking for the means to change theĀ animation speed on the Divi Toggle and Accordion modules. It was also clear that the interwebz sort of shrugged its shoulders in answer to my queries.

As far as I can tell, there’s no “clean” way to achieve this. The animation speed is hard coded in a JS file inside the Divi theme core.

We all know that editing core theme files is a level of hackery unbecoming of a self-respecting WordPress designer/developer, so I came up with the cleanest methodology I could that’s based in a child theme:

A little klugey, perhaps, but functional. And still, I maintain, WAY better than editing core parent theme files.

Feedback welcome. If you’ve got a better solution, I definitely want to hear about it.