Skip to content

Commit

Permalink
hide sticky header container on full refreshes in customizer fixes #91
Browse files Browse the repository at this point in the history
  • Loading branch information
timelsass committed May 13, 2019
1 parent 6b3f228 commit af35f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/class-boldgrid-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ private function define_theme_hooks() {
<?php
}, 20 );
}
if ( is_customize_preview() && ( false === get_theme_mod( 'bgtfw_fixed_header' ) || 'header-top' !== get_theme_mod( 'bgtfw_header_layout_position' ) ) ) {
if ( is_customize_preview() && false === get_theme_mod( 'bgtfw_fixed_header' ) ) {
add_filter( 'bgtfw_sticky_header_display_css', function( $css ) {
$css .= '#boldgrid-sticky-wrap .bgtfw-sticky-header { display: none; }';
return $css;
Expand Down

0 comments on commit af35f48

Please sign in to comment.