WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Columns messed up in version 2.10 of WC (4 posts)

  1. janbletz
    Member
    Posted 5 months ago #

    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/

  2. janbletz
    Member
    Posted 5 months ago #

    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

  3. janbletz
    Member
    Posted 5 months ago #

    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

  4. janbletz
    Member
    Posted 5 months ago #

    Sorry for the double posting...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags