Detect if Page Builder is being used in template files


I’m wanting to have a specific style on pages that are NOT using the page builder. I’m versed in PHP and in creating/modifying template files and am wondering if there is a function call or something like like that, that I can use to check to see if page builder is being used, then if not, output x.

Let me know if you need more info and I’ll provide the specific details of what we’re trying to accomplish.


Hey Tim,

You can see if the builder is active on a page by using this code…

if ( FLBuilderModel::is_builder_enabled() ) {
   // It's active. 
else {
   // It's not active. 

That method uses the global $post variable, so make sure you’re not overriding that with a custom query.

Let me know if you have any questions!


Hi Justin,

That worked perfectly. Thank you!