Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set the page builder container to full width if Beaver Builder is active
add_filter( 'body_class', 'tu_bb_full_width_class' );
function tu_bb_full_width_class( $classes ) {
if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) {
$classes[] = 'full-width-content';
return $classes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment