Skip to content

Commit

Permalink
Merge pull request #51 from Nikschavan/issue-44
Browse files Browse the repository at this point in the history
don't add body classes for shrink and transparent header options if c…
  • Loading branch information
Nikschavan authored Jun 4, 2017
2 parents b94b488 + c564380 commit d1d1dba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class-bb-header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ public function body_class( $classes ) {
$classes[] = 'dhf-footer';
}

if ( 'on' == $bb_transparent_header ) {
if ( '' !== $header_id && 'on' == $bb_transparent_header ) {
$classes[] = 'bbhf-transparent-header';
}

if ( 'on' == $bb_sticky_header ) {
if ( '' !== $header_id && 'on' == $bb_sticky_header ) {
$classes[] = 'bhf-sticky-header';
}

if ( 'on' == $bb_shrink_header ) {
if ( '' !== $header_id && 'on' == $bb_shrink_header ) {
$classes[] = 'bhf-shrink-header';
}

Expand Down

0 comments on commit d1d1dba

Please sign in to comment.