I am encountering a layout issue on the mobile version of my e-commerce website running WordPress with WooCommerce. A significant and undesired gap appears in the cart between the product list and the subtotal section. This gap seems to be caused by a flickity-viewport container with a fixed height, but there is no relevant content within this container that necessitates such spacing.
Key points regarding the issue:
The excessive gap is exclusive to the mobile view.
All CSS margins and paddings related to the involved elements are set to zero.
There are no inline styles or CSS properties that account for the extra space.
Efforts to address the issue with custom CSS have not yielded results.
This problem does not manifest in the desktop view of the site.
I aim to eliminate this gap to improve the mobile user experience. Could you provide guidance on resolving this issue or direct me to the appropriate steps to adjust the spacing correctly?
Thank you for your support, and I look forward to resolving this promptly.
I am encountering a layout issue on the mobile version of my e-commerce website running WordPress with WooCommerce. A significant and undesired gap appears in the cart between the product list and the subtotal section.
Could you please attach your site URL and a few screenshots that illustrate the issue?
If you donβt already have a screenshot service installed, here are a few free options:Β
I can only an image with an URL, can’t only put my screenshot. here is the URL oh the website and what I have tried to solve the problem. https://www.univers-coussin-oreiller.fr/
Here are the steps I have undertaken:
CSS Adjustments: I have attempted to override the inline styles using CSS with height: auto !important; for the .flickity-viewport class, which did not resolve the spacing issue.
JavaScript Approach: I’ve injected a script to set the height of .flickity-viewport to auto upon DOM content loaded event. This effectively changed the height but did not affect the unwanted space.
Deactivation of Autoptimize Plugin: I temporarily disabled the Autoptimize plugin to rule out any conflicts arising from CSS and JS optimization. The issue persisted even with Autoptimize turned off.
Inspecting Adjacent CSS: The class .mb-half was noted to have a negative margin which was adjusted. It did not affect the spacing in question.
Setting Flickity Viewport Height to Zero: In a follow-up attempt, I also tried setting the .flickity-viewport height to 0px to collapse the space, yet the gap remained.
These efforts have not yielded a resolution, and the gap persists, affecting the user experience on mobile devices. The issue seems to be more complex than a simple CSS or JS conflict, and I suspect there might be underlying template or script issues specific to the mobile view that are beyond my current capacity to diagnose.
I can only an image with an URL, canβt only put my screenshot. here is the URL oh the website and what I have tried to solve the problem. https://www.univers-coussin-oreiller.fr/
Please check the following screencast, I’m not able to find the gap.
While WooCommerce provides e-commerce functionality, things like your page layout, styles, colours, and font are mostly inherited from your theme so it might be better if you contact your theme author directly about this.
Let us know if you have any other questions or if I misunderstood your request. :β)
I followed your instructions here, however, I am still not seeing the gap as you mentioned. Here’s what I’m seeing on my end:
Could you please provide us with a clear screenshot of what you’re seeing on your end? This will help us better understand your situation and address your concerns more effectively.
If you donβt already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.
I also tried this on my end on an iOS 17 version device and the latest version of an Android device, and both do not show the gap. The fact that this happens to one device may be device-related, and not totally through WooCommerce’s settings. Could you please ensure that you’re using the latest iOS version? This also ensures you are using the latest version of Safari. You may also try to restart your device or reinstall the app.
Yes, it’s possible. The only thing I can confirm is that this is isolated to your device, so you can try to update it first. If you need assistance with updating your device, I recommend reaching out to Apple. Please ensure to back up your data before any changes.
You’re welcome! I’m glad to hear that we could assist you with your issue.
Iβll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, donβt hesitate to kick off a new topic.