$value ) { if ( $value == 'tag' ) { unset( $classes[ $key ] ); } } return $classes; } } // Filter custom logo with correct classes. add_filter( 'get_custom_logo', 'change_logo_class' ); if ( ! function_exists( 'change_logo_class' ) ) { /** * Replaces logo CSS class. * * @param string $html Markup. * * @return mixed */ 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('alt=""', 'title="Home" alt="logo"' , $html ); return $html; } }