[Support request] 2 products wide on mobile

Home Forums Support [Support request] 2 products wide on mobile

Home Forums Support 2 products wide on mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #234130
    Glenn

    Hello. Wondering if there was a code anyone recommends putting in there to make sure there is a minimum 2 wooproducts wide on mobile pages

    put this into simple css with no luck:


    @media
    (max-width: 768px) {
    ul.products li.product {
    width: 48%;
    float: left;
    clear: both;
    }

    ul.products li.product:nth-child(2n) {
    clear: none;
    float: right;
    }
    }

    #234174
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this a shot:

    @media (max-width: 768px) {
        .woocommerce ul.products li.product, 
        .woocommerce-page ul.products li.product, 
        .woocommerce-page[class*=columns-] ul.products li.product, 
        .woocommerce[class*=columns-] ul.products li.product {
            width: 48%;
            float: left;
        }
    }
    #234312
    Glenn

    tried but it didn’t do anything. not sure if something got messed up when I put the previous code into the simple css panel in the customize area. I put it in and then it disappeared but still effected my site while using other themes. Neither of the two css inputs in this thread have made the 2 products wide in mobile in generate press

    #234433
    Tom
    Lead Developer
    Lead Developer

    So when you added that CSS to Simple CSS, it disappeared when you saved?

    #234480
    Glenn

    yes

    #234558
    Tom
    Lead Developer
    Lead Developer

    Can you try #1 on this page to check for other plugin issues?: https://generatepress.com/knowledgebase/debugging/

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.