From 88c5a387cba78321d27d049a21b482e7f8d904ad Mon Sep 17 00:00:00 2001 From: Jessica Jean Date: Mon, 19 Sep 2016 17:19:00 -0700 Subject: [PATCH] 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; +}