Divi for Developers

Filter the Divi Module Custom CSS Fields

The Divi theme developer documentation describes how to control the Custom CSS Fields for a module's settings. There's a built-in filter for modifying these fields, which you can use like so:

Filter the Divi Module Advanced Fields

The Divi theme developer documentation describes how to control the Advanced Field Types for a module's settings: that is, how to add / control advanced options such as background and font options to Divi modules. There's a built-in filter for modifying these fields,...

Changing the Divi Role Editor Defaults

The Divi Theme comes with a role editor that lets you control which user roles (administrator, editor, contributor, etc) can use which Divi features. By default, everyone has access to everything and you must explicitly disable any features you don't want accessed by...

Clearing Custom Modules from the Divi Builder Cache

For developers of custom Divi builder modules, here's a quick tip that may save you some hassle along the way. Divi Builder caches modules in the browser's local storage to improve performance. However, as a custom module developer, you may find that changes you make...

Detecting when Divi Builder is Enabled and Disabled

In my earlier post, I described how to detect if the Divi Builder is in use on a given post / page edit screen. But what if you want to actually detect when the user enables / disables Divi Builder editor? It can be done as in the following way. Adding jQuery to the...

Detecting if Divi Builder is Running

I've spent a lot of time posting tips to help Divi users make the most out of the Divi Theme. Now, that there are an ever-growing number of developers working on some damn cool Divi plugins, I've decided to start posting tips for Divi developers too. To kick things...