Hello,
I’m using Sage 8.5.0.
I 'm using this code in my functions.php
:
function custom_class_archives( $classes ) {
if ( is_archive() || is_page(964) || is_page('blog') ) {
$classes[] = 'stream';
}
return $classes;
}
add_filter( 'body_class', 'custom_class_archives' );
It’s working for my CPT, tag archives (‘stream’ class getting added to ). But it’s not working for the blog page (whether I use blog page’s ID or slug).
What could be the reason?