removing body class "tag" from tag page to avoid BS styling issues with .tag class
This commit is contained in:
parent
eaa316b2be
commit
910f782934
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue