Override All CSS with Custom CSS on a Page by Page Basis

You can replace the page type condition to match your page by ID or slug instead. https://www.webperftools.com/blog/how-to-remove-unused-css-in-wordpress/ function enqueue_pure_styles() { $suffix = ”; if (is_front_page()) { $suffix = ‘.front-page’; } else if (is_page()) { $suffix = ‘.pages’; } else if (is_single()) { $suffix = ‘.blog’; } else if (is_archive()) { $suffix = ‘.archives’; } wp_enqueue_style(‘pure-styles’, … Read more

custom template display 3 columns

Check with below code you need to start that grid-container div before while loop as like below: <?php get_header(); ?> <?php $args = array( ‘post_type’=> ‘movie’ ); $the_query = new WP_Query($args); ?> <?php if ( $the_query->have_posts() ) : ?> <div class=”grid-container”> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class =”column”> <div class=”img_gallery”> <?php … Read more