- This topic has 34 replies, 4 voices, and was last updated 4 years, 4 months ago by Tom.
-
AuthorPosts
-
August 15, 2019 at 3:12 am #984637Fredrik
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.
August 15, 2019 at 3:20 am #984638FredrikAugust 15, 2019 at 4:36 am #984678DavidStaffCustomer SupportHi 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 lookAugust 15, 2019 at 4:51 am #984688FredrikHi David. I’ve disabled Lazy Load, Autoptimize and Comet cache, the problem remains. Let me know if you need admin access.
August 15, 2019 at 5:10 pm #985260TomLead DeveloperLead DeveloperHi there,
Can you try adding this CSS?:
#wc-column-container .product { word-break: break-all; }
August 16, 2019 at 1:29 am #985447FredrikTom, yes that worked π
August 16, 2019 at 10:07 am #985935TomLead DeveloperLead DeveloperAwesome π
August 19, 2019 at 11:37 am #988221FredrikWell, 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;
}August 19, 2019 at 4:32 pm #988378TomLead DeveloperLead DeveloperCan you try this instead?:
body.woocommerce .wc-columns-container.wc-columns-3 .products { grid-template-columns: repeat(3,minmax(0, 1fr)); }
Let me know π
August 20, 2019 at 12:11 am #988537FredrikThere might be a parsing error with that CSS, can’t get it to work at all.
“Expected RBRACE at line 2, col 47.”August 20, 2019 at 8:40 am #989020TomLead DeveloperLead DeveloperDoes 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?
August 21, 2019 at 1:19 am #989432FredrikI assumed it was broken since it doesn’t make a difference on the grid. It didn’t work π
August 21, 2019 at 9:24 am #989902TomLead DeveloperLead DeveloperHmm, 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.
August 23, 2019 at 2:16 am #991356FredrikIt’s now added back in and I’ve disabled my own fix. It’s in the style.css.
August 23, 2019 at 9:32 am #991729TomLead DeveloperLead DeveloperCan you try the updated CSS here?: https://generatepress.com/forums/topic/woocommerce-products-outside-screen-mobile/#post-988378
Let me know π
-
AuthorPosts
- You must be logged in to reply to this topic.