fbpx

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;

Are You a Do-It-Yourself WordPress-er?

If you aren't ready to invest in Sterner Stuff, I've got something for you! Check out my new (and free) WordPress for Small Business Owners email course!

Leave a reply

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