Merge pull request #89 from willgorham/patch-logo
Fix custom logo function typo +1 @willgorham
This commit is contained in:
commit
ac9d02f488
|
@ -29,13 +29,13 @@ add_filter( 'body_class', 'understrap_body_classes' );
|
||||||
|
|
||||||
add_filter( 'body_class', 'adjust_body_class' );
|
add_filter( 'body_class', 'adjust_body_class' );
|
||||||
function adjust_body_class( $classes ) {
|
function adjust_body_class( $classes ) {
|
||||||
|
|
||||||
foreach ( $classes as $key => $value ) {
|
foreach ( $classes as $key => $value ) {
|
||||||
if ( $value == 'tag' ) unset( $classes[ $key ] );
|
if ( $value == 'tag' ) unset( $classes[ $key ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $classes;
|
return $classes;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter custom logo with correct classes
|
// Filter custom logo with correct classes
|
||||||
|
@ -43,6 +43,6 @@ add_filter('get_custom_logo','change_logo_class');
|
||||||
function change_logo_class($html)
|
function change_logo_class($html)
|
||||||
{
|
{
|
||||||
$html = str_replace('class="custom-logo"', 'class="img-responsive"', $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('class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html);
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue