• Resolved aaron843

    (@aaron843)


    I’m trying to set my shop to show 3 columns on all shop loop pages. I’m using the following code in my child theme functions.php

    add_filter('loop_shop_columns', 'loop_columns', 999);
    if (!function_exists('loop_columns')) {
    	function loop_columns() {
    		return 3; // 3 products per row
    	}
    }

    This successfully results in the following for the main shop and tag archives.

    <ul class="products columns-3">

    However, on attribute archives, it outputs:

    <ul class="products columns-1">

    If I click the “customize” button, it magically changes to class=”products columns-3″. If I change themes it gets fixed, too.

    Does anyone know where this is getting set? I don’t have any customized woo templates in my child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter aaron843

    (@aaron843)

    Update: This problem is happening only on a single archive page. All others work fine. I’m not sure what is different about this particular page.

    Saif

    (@babylon1999)

    Hello @aaron843,

    Thank you for reaching out!

    You don’t need to add a custom snippet for this. :?)

    Simply navigate to Appearance → Customize → WooCommerce → Product Catalogue.


    Link to image: https://d.pr/i/9Sw22f

    Let us know if you have any other questions. :?)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stubbornly 1-column on attribute archive pages’ is closed to new replies.