add filter for custom logo classes in header
This commit is contained in:
parent
20208211a9
commit
88c5a387cb
|
@ -37,3 +37,12 @@ function adjust_body_class( $classes ) {
|
||||||
return $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;
|
||||||
|
}
|
||||||
|
|
Reference in New Issue