Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Check if a page is using a Beaver Builder layout
function is_beaver_builder_layout() {
if( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) {
return true;
} else {
return false;
// Use this inside your template files (page.php, single.php ...) to check
if( is_beaver_builder_layout() ) {
// Ok, this page use is a Beaver Builder layout
} else {
// Ko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment