Function to Check if Divi is Active

There are times you may want your WordPress page templates to behave differently depending on whether or not a page builder has been enabled on it. For example, I built out a custom page template for a client that had content that was populated via custom fields, but also space for whatever was in the default WordPress editor.

For some reason, this was a chore to find, but here you go:

if(et_core_is_builder_used_on_current_request()): // do some stuff endif;
Code language: PHP (php)

Leave a Reply

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