removing body class "tag" from tag page to avoid BS styling issues with .tag class

This commit is contained in:
koenemann 2016-08-15 15:03:06 +02:00
parent eaa316b2be
commit 910f782934
1 changed files with 13 additions and 0 deletions

View File

@ -24,3 +24,16 @@ function understrap_body_classes( $classes ) {
return $classes;
}
add_filter( 'body_class', 'understrap_body_classes' );
// Removes tag class from the body_class array to avoid Bootstrap markup styling issues.
add_filter( 'body_class', 'adjust_body_class' );
function adjust_body_class( $classes ) {
foreach ( $classes as $key => $value ) {
if ( $value == 'tag' ) unset( $classes[ $key ] );
}
return $classes;
}