- This topic has 34 replies, 4 voices, and was last updated 6 years, 4 months ago by
Tom.
-
AuthorPosts
-
August 24, 2019 at 12:56 am #992067
Fredrik
It works only if I add !important. I changed it to 2 columns instead of 3, but used a mobile breakpoint. the Desktop view is fine.
I also change the gap and padding to make the products fit better. Isn’t there a setting to change the product gap for mobile view?
/* WOO COLUMN GRID FIX */ @media (max-width: 768px) { body.woocommerce .wc-columns-container.wc-columns-3 .products { grid-template-columns: repeat(2,minmax(0, 1fr)) !important; } .one-container .site-content, .inside-page-header { padding: 10px; } .wc-columns-container .products, .woocommerce .related ul.products, .woocommerce .up-sells ul.products { grid-gap: 10px !important; } }August 24, 2019 at 9:51 am #992418Tom
Lead DeveloperLead DeveloperGood to know – seems like a bug in CSS Grid. We’ll get this fixed in GPP 1.9.
There isn’t a gap option right now, but we’ll be adding that to 1.9 as well.
November 4, 2019 at 11:33 am #1053152Tom
Lead DeveloperLead DeveloperHi there,
GP Premium 1.9.0-alpha.1 is available for testing. It has a fix for this issue: https://generatepress.com/forums/topic/gp-premium-1-9-0-available-for-testing/
Let me know if you’re able to give it a try 🙂
December 13, 2019 at 5:42 am #1103130Fredrik
Tom, I’ve just tried the 1.9.1 update and this issue still there.
Latest GP Premium, Latest theme. Cleaned cache before and after activation. Once my CSS is removed, the issue appear again.
I.E; On the phone, with 2-column products, the second product is half outside the screen.
December 13, 2019 at 5:10 pm #1103772Tom
Lead DeveloperLead DeveloperOn this site?: https://syttpanytt.se/butik/
I’m not seeing any issues on that page.
Let me know 🙂
December 14, 2019 at 12:03 am #1103885Fredrik
That’s because I have the css you provided earlier active 🙂
December 14, 2019 at 7:45 am #1104284David
StaffCustomer SupportHi there,
can you remove ( comment out ) the CSS Tom provided then clear and disable autoptimize cache so we can take a look?
December 14, 2019 at 9:15 am #1104352Fredrik
Sure. It’s done.
https://syttpanytt.se/butik/December 14, 2019 at 9:17 am #1104356David
StaffCustomer SupportStill seeing Autoptimize – can you disable the plugin?
December 14, 2019 at 9:22 am #1104362Fredrik
ah sorry. It’s disabled.
December 15, 2019 at 5:45 am #1104835David
StaffCustomer SupportIt looks as though the issue is still related to the word-break – i am not sure why the columns CSS provided before worked and the updated theme code deosnt, was the word break CSS still have been in place?
Try adding this CSS to cure the word break issue:
.woocommerce-product-details__short-description { overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }December 15, 2019 at 6:47 am #1104877Fredrik
I’ve turned off all CSS and only applied your CSS, the products are still outside screen on phones.
December 15, 2019 at 7:10 am #1105024David
StaffCustomer SupportHave you cleared your browser caches as its working for me. Double check by opening in a private/incognito browser which doesn’t cache pages.
If still an issue, which device / browser can you see the problem?
December 15, 2019 at 8:24 am #1105063Fredrik
The issue is only visible on a physical device, not in the simulated window in the browser.
My client have the issue on her iphone, I have the issue om my Huawei P20, Google chrome.
It’s also visible on Samsung S7 Chrome.December 15, 2019 at 9:29 am #1105119Tom
Lead DeveloperLead DeveloperHi there,
Can you try this instead?:
.woocommerce-product-details__short-description, .woocommerce-loop-product__title { overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }Let me know 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.