Home Forums Basel support forum Number of Products columns != number of Categories columns in shop page

Number of Products columns != number of Categories columns in shop page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #307177

    epyxida
    Participant

    Hi.
    Thank you for your hard work of developing and supporting this theme.
    I want to find a way to have different number of Products Categories columns compared to number of product list columns.

    E.g Products Categories columns to be 6 and product list to be 4.

    I tried the following code but it did n’t worked

    add_filter('loop_columns', 'loop_columns', 1000);
     function loop_columns() {
        return is_product_category() ? 6 : 4; 
    } 

    can you help me?

    #307373

    Hello,

    Woocommerce does not provide the option, unfortunately, we do not have a quick either.

    You will have to search for a plugin.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)