Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1231646
    iRocketdesign
    Participant

    I only have 2 categories, and on the Shop page the thumbnails are left justified. I would like them centered. Can you help with that please?

    http://www.stillwelljacks.com

    login info in private to follow.

    thanks,
    Rick

    #1231649
    iRocketdesign
    Participant
    This reply has been marked as private.
    #1231694
    Jade
    Moderator

    Hi there,

    The products in the shop page automatically sets their alignment according to how many columns is set in the customiZer.

    Currently your shop page is set to display 3 columns while there are currently just two products. You can set the columns to 2 so that the layout will adjust accordingly. You can set it in Appearance > Customizer > Woocommerce > Shop Columns.

    Hope this helps.

    #1231709
    iRocketdesign
    Participant

    I have it set to 3 because I have 3 products within the one category. So the two pages have to be the same setting? If I change it to 2, it makes my products page look wrong.

    #1232000
    iRocketdesign
    Participant

    So my question is can I only center my two category thumbnails without changing my customizer from 3, since I don’t want my products page to change?

    #1232061
    Nabeel A
    Moderator

    Hi there,

    Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:

    .woocommerce .cols-3 li.product, .woocommerce.columns-3 li.product {
        width: 46% !important;
    }

    Let us know how this goes!

    #1232086
    iRocketdesign
    Participant

    That worked but it also changed my Products page as well, which I don’t want. Any other suggestions?

    #1232518
    Lely
    Moderator

    Hi Rick,

    For that CSS to work on your shop page only, please update above CSS to this:

    .post-type-archive-product.woocommerce .cols-3 li.product,
    .post-type-archive-product.woocommerce.columns-3 li.product {
        width: 46% !important;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1231646 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>