Skip to content

Commit

Permalink
singluar class for the page
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkalpagdar committed Jan 10, 2025
1 parent 7d3ce7a commit 3978216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-includes/post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 3978216

Please sign in to comment.