• Resolved Jamie-Lee Keevy

    (@jamiekeevy1)


    When I select a category and view it on a mobile the images are elongated, does anyone have some css advice on how I can make it nice and squared on a mobile

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Senff – a11n

    (@senff)

    Hey @jamiekeevy1

    You can do this with a little bit of custom CSS code.

    Go into your site’s admin Dashboard and select Appearance → Customize →?Additional CSS. In the CSS textbox on the left, add the following code:

    @media screen and (max-width: 1024px) {
      .woocommerce.product-columns-5 ul.products li.product, 
      .woocommerce-page.product-columns-5 ul.products li.product {
        width: 48%;
        margin-left: 4%;
        margin-right:0;
      }
    
      .woocommerce.product-columns-5 ul.products li.product:nth-child(2n+1), 
      .woocommerce-page.product-columns-5 ul.products li.product:nth-child(2n+1) {
        margin-left: 0;
      }  
    
    }
    
    @media screen and (max-width: 768px) {
      .woocommerce.product-columns-5 ul.products li.product, .woocommerce-page.product-columns-5 ul.products li.product {
        width: 100%;
        margin: 0;
      }
    }

    Select “Save Changes” from the top, and your changes will be applied to your site.

    Thread Starter Jamie-Lee Keevy

    (@jamiekeevy1)

    @senff Thank you so much!

    Thread Starter Jamie-Lee Keevy

    (@jamiekeevy1)

    Thank you @senff

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce responsive view’ is closed to new replies.