page_template ) ) { // Get the template name from the page's meta information. $template_name = basename( $grid_template->page_template, '.php' ); // If the specific template is assigned, update $div_classes. if ( $template_name === 'blog-grid-no-sidebar' ) { $div_classes = 'theme-column-4 theme-md-column-6'; } } ?>