From b31ce3fdb7af9f0056df11f0430ae03c6342211f Mon Sep 17 00:00:00 2001 From: willgorham Date: Sat, 15 Oct 2016 23:09:05 -0400 Subject: [PATCH] Fix custom logo function typo --- inc/extras.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/extras.php b/inc/extras.php index 49f54f9..01a489d 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -29,13 +29,13 @@ add_filter( 'body_class', 'understrap_body_classes' ); add_filter( 'body_class', 'adjust_body_class' ); function adjust_body_class( $classes ) { - + foreach ( $classes as $key => $value ) { if ( $value == 'tag' ) unset( $classes[ $key ] ); } - + return $classes; - + } // Filter custom logo with correct classes @@ -43,6 +43,6 @@ add_filter('get_custom_logo','change_logo_class'); function change_logo_class($html) { $html = str_replace('class="custom-logo"', 'class="img-responsive"', $html); - $html = str_replace('class="custom-logo-link"', 'class="navbar-brand" custom-logo-link', $html); + $html = str_replace('class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html); return $html; }