[Support request] WooCommerce products outside screen – mobile.

Home Forums Support [Support request] WooCommerce products outside screen – mobile.

Home Forums Support WooCommerce products outside screen – mobile.

Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • #984637
    Fredrik

    I’ve just noticed that the product grid is overlapping the outside of mobile screens. Tested in firefox(PC), chrome android. Works well on Chrome PC.

    There might be an issue here I can’t figure out. This wasn’t here before, so might have come with an update.
    https://syttpanytt.se/aterbruksbutiken/

    Changing to 1 product works. But changing to 3 products will place the 3rd product completly outside the screen.

    #984638
    Fredrik

    #984678
    David
    Staff
    Customer Support

    Hi there,

    can you flush and disable you cache so we can eliminate that as being the cause.
    If the problem is still there, leave the cache disabled and let me know and ill take a look

    #984688
    Fredrik

    Hi David. I’ve disabled Lazy Load, Autoptimize and Comet cache, the problem remains. Let me know if you need admin access.

    #985260
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Can you try adding this CSS?:

    #wc-column-container .product {
        word-break: break-all;
    }
    #985447
    Fredrik

    Tom, yes that worked πŸ™‚

    #985935
    Tom
    Lead Developer
    Lead Developer

    Awesome πŸ™‚

    #988221
    Fredrik

    Well, I discovered that it works, but now I can’t control the paragraph word-break inside the product. When changing to “normal” as I want, It reverts back to being broken.

    /* product mobile grid fix */
    #wc-column-container .product {
    word-break: break-all;
    }
    /* Trying to fix the word break */
    #wc-column-container .woocommerce-product-details__short-description p {
    word-break: normal;
    }
    EDIT: I’ve temporarily fixed it by disabeling your CSS and adding this. Looks half-done. Hope there is a better solution.

    .one-container .site-content, .inside-page-header {
    padding: 10px;
    }

    .wc-columns-container .products {
    grid-gap: 10px;
    }

    #988378
    Tom
    Lead Developer
    Lead Developer

    Can you try this instead?:

    body.woocommerce .wc-columns-container.wc-columns-3 .products {
        grid-template-columns: repeat(3,minmax(0, 1fr));
    }

    Let me know πŸ™‚

    #988537
    Fredrik

    There might be a parsing error with that CSS, can’t get it to work at all.
    “Expected RBRACE at line 2, col 47.”

    #989020
    Tom
    Lead Developer
    Lead Developer

    Does it not allow you to save? The syntax should be fine like that.

    If not, can you try adding it to a plugin like Simple CSS or your child theme style.css file?

    #989432
    Fredrik

    I assumed it was broken since it doesn’t make a difference on the grid. It didn’t work πŸ™

    #989902
    Tom
    Lead Developer
    Lead Developer

    Hmm, it works when I add the CSS to your site using developer tools. Can you add the CSS and leave it in so I can take a look? I’m not seeing it right now.

    #991356
    Fredrik

    It’s now added back in and I’ve disabled my own fix. It’s in the style.css.

    #991729
    Tom
    Lead Developer
    Lead Developer
Viewing 15 posts - 1 through 15 (of 35 total)
  • You must be logged in to reply to this topic.