From 397821607652d2d1849ef6a78ba09c54c4c2cb4b Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:05:06 +0530 Subject: [PATCH] singluar class for the page --- src/wp-includes/post-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 4f3bfbef0cd7e..7201c10034d50 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -675,6 +675,7 @@ function get_body_class( $css_class = '' ) { $post = $wp_query->get_queried_object(); $post_id = $post->ID; $post_type = $post->post_type; + $classes[] = 'singular'; if ( is_page_template() ) { $classes[] = "{$post_type}-template";