/Full Width & Hide Page Header Unless Custom Header is Enabled in GeneratePress - Beaver Builder.php
Last active
March 26, 2021 00:59
-
-
Save taricco/81c773d19b2934f1ac189fa34b4e0746 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'body_class', 'plm_custom_body_class' ); | |
| function plm_custom_body_class( $classes ) { | |
| if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) { | |
| $classes[] = 'full-width-content'; | |
| $classes[] = 'hide-page-header'; | |
| return $classes; | |
| } | |
| else { | |
| return $classes; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment