Site logo

Archived topic

How to do single column on blog page but multiple columns on category archives?

4 replies · Started by Halil on March 18, 2023

Viewing posts 1–5 of 5

hi,
My homepage is my blog where I use single column post list.

However I'd like to create a category archives with multiple columns.

I tried using query templates but I failed.

How can I achieve this?

I've added pics on private area.

thanks a lot

yes Leo, blog page is the frontpage

I somehow solved this thru loop template leo, thanks.

Glad to hear that you've found a solution.

Just FYI you don't actually need the loop template with Query loop for this.

If the columns option is activated in the customizer, you can just use this snippet to turn it off on the blog/front page:

add_filter( 'generate_blog_columns', function( $columns ) {
    if ( is_front_page() && is_home() ) {
        return false;
    }

    return $columns;
} );

Learn how to add PHP: https://docs.generatepress.com/article/adding-php/

This archived topic is closed to new replies.