• Resolved remyc73

    (@remyc73)


    Hello,

    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.

    Best,

Viewing 14 replies - 1 through 14 (of 14 total)
  • Saif

    (@babylon1999)

    Hello @remyc73,

    Thank you for reaching out!

    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:Β 

    Look forward to hearing back from you.

    Thread Starter remyc73

    (@remyc73)

    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.

    Saif

    (@babylon1999)

    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.


    Link to image: https://d.pr/i/8MBFEU

    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. :β€Ž)

    Thread Starter remyc73

    (@remyc73)

    the gap is at the top right when you click on the basket after adding a product (only on mobile)

    Hi @remyc73

    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.

    Thread Starter remyc73

    (@remyc73)

    I agree, but depending on the phone you have, the gap is more or less important :

    https://snipboard.io/oiFP4f.jpg

    https://snipboard.io/AaHqVm.jpg

    Thanks again for helping me so much πŸ™‚

    Thread Starter remyc73

    (@remyc73)

    Hi @remyc73

    Thanks for providing the screenshots, these are helpful! πŸ™‚

    I used my browser’s mobile view to check on your site. Can you please share if you used an Android or iOS phone for the screenshots above?

    If this helps, can you please try to follow the steps below and see if this resolves the issue?

    • Clear all transients under WooCommerce > Status > Tools
    • Have your host purge the site/server cache
    • Clear your browser’s cache or try another browser or in incognito mode and see if that works

    Let us know how it goes!

    Thread Starter remyc73

    (@remyc73)

    Hi !
    The screen was taken on an Iphone 13 mini πŸ™‚
    I also have already done the 3 other things u asked !

    I also tested it on my phone (iphone SE 2020), no gap. But on the 13 yes. Quite strange.

    Hi @remyc73

    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.

    Thread Starter remyc73

    (@remyc73)

    Ok ok perfect thanks a lot ! πŸ™‚
    That’s mean only not updated devices could have this gap ?

    Hi @remyc73

    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.

    Thread Starter remyc73

    (@remyc73)

    Thanks a lot for your help πŸ™‚ have a nice day

    Hi @remyc73,

    Thanks a lot for your help πŸ™‚ have a nice day

    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.

    We’d be thrilled if you could spare a few minutes to leave us a review at πŸ‘‰ https://wordpress.org/support/plugin/woocommerce/reviews.

    Cheers!

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Excessive Gap in Mobile Cart View on WooCommerce Site’ is closed to new replies.