WordPress.org

Support

Support » Plugins and Hacks » Columns messed up in version 2.10 of WC

Columns messed up in version 2.10 of WC

  • janbletz
    Participant

    @janbletz

    Oops, my columns are messed up.

    A few months ago, I added the following code to the functions.php of my theme: add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 48;' ), 20 );

    This worked fine: 3 products per column (plus a sidebar to the right), 16 rows on a page.

    Now it’s a mess. One row has 2 products, a second one 3, another row only one…

    What should I do? I tried removing the code I added, but that doesn’t work.

    Jan

    https://wordpress.org/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • janbletz
    Participant

    @janbletz

    Also (I just remembered), I changed the css of my template:

    .woocommerce .products ul, .woocommerce ul.products, .woocommerce-page .products ul, .woocommerce-page ul.products {width:100%;}
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {width:30%;clear:none;}

    If I remove this, the products are smaller.

    It still looks awful, though.

    My theme is suffusion.

    Jan

    janbletz
    Participant

    @janbletz

    I just remembered, I changed the css of my template. I added:

    .woocommerce .products ul, .woocommerce ul.products, .woocommerce-page .products ul, .woocommerce-page ul.products {width:100%;}
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {width:30%;clear:none;}

    The products in the category display are shown a bit smaller now.

    It still looks hideous.

    My theme is Suffusion.

    Jan

    janbletz
    Participant

    @janbletz

    Sorry for the double posting…

    nstampler
    Member

    @nstampler

    Did you ever find a solution for this? I have this exact problem and can’t find a solution for it. Any help would be much appreciated!

    Thanks!

    janbletz
    Participant

    @janbletz

    It works. See http://www.respons.co.nl/winkel Probably becaue I changed the custom css (not quite sure, it’s almost a year ago). Here’s my code: `.woocommerce .products ul, .woocommerce ul.products, .woocommerce-page .products ul, .woocommerce-page ul.products {width:100%;}
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {width: 22,9%;clear: none;height: 300px;}
    `

    I hope this works!

    Jan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Columns messed up in version 2.10 of WC’ is closed to new replies.