From 20208211a9755a59961cca256e721f83db4ab12b Mon Sep 17 00:00:00 2001 From: Jessica Jean Date: Mon, 19 Sep 2016 17:13:27 -0700 Subject: [PATCH 1/2] Fixed custom logo error in header --- header.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index 451b73c..db9e2a6 100755 --- a/header.php +++ b/header.php @@ -47,7 +47,11 @@ - + + + + + @@ -64,7 +68,6 @@ ); ?> - From 88c5a387cba78321d27d049a21b482e7f8d904ad Mon Sep 17 00:00:00 2001 From: Jessica Jean Date: Mon, 19 Sep 2016 17:19:00 -0700 Subject: [PATCH 2/2] add filter for custom logo classes in header --- inc/extras.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/extras.php b/inc/extras.php index c44c035..49f54f9 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -37,3 +37,12 @@ function adjust_body_class( $classes ) { return $classes; } + +// Filter custom logo with correct classes +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); + return $html; +}