add filter for custom logo classes in header

This commit is contained in:
Jessica Jean 2016-09-19 17:19:00 -07:00 committed by GitHub
parent 20208211a9
commit 88c5a387cb
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}