Cart Drawer (Off-Canvas) loses styling when cart has items, CSS not applied after AJAX fragment upd

This topic has 6 replies, 2 voices, and was last updated 9 hours, 33 minutes ago ago by Jack Richardson

  • Avatar: Dominic Legare
    Dominic Legare
    Participant
    March 18, 2026 at 20:49

    Hi XStore team,
    I’m running XStore with Elementor on a WooCommerce + WPML bilingual site (FR/EN). I have a cart drawer widget configured as Off-Canvas, position Right, with “Automatically open canvas” enabled.
    The problem:
    The drawer renders correctly when the cart is empty — proper layout, buttons styled, everything looks good. But as soon as there are items in the cart, the drawer loses all its CSS styling. The items appear as unstyled plain text with no layout, the “View Cart” and “Checkout” buttons are unstyled, and the product grid layout breaks completely.
    What I’ve already tried:

    Disabled SG Cache completely (tested in incognito with no cache plugins active — problem persists)
    Regenerated Elementor CSS files & data
    Enabled “Always load wc-cart-fragments”
    Disabled Ajaxify, dropdown cache, forced cache, flying pages in XStore speed options
    Tested on both FR and EN versions of the site

    Root cause I identified:
    The Elementor-generated CSS for the cart widget is scoped to .elementor-kit-724, but when WooCommerce cart fragments replaces the drawer HTML via AJAX, the injected content doesn’t inherit the .elementor-kit-724 scope, so the styles don’t apply to the updated content.
    I was able to work around this by manually adding CSS directly targeting the drawer classes (.elementor-menu-cart__product, .elementor-button–view-cart, etc.) in Appearance → Additional CSS, bypassing the Elementor scope entirely. This works but it’s a manual workaround that shouldn’t be necessary.
    Loom video showing the issue:
    https://www.loom.com/share/665b0f7597cd4486ac5e541f833928e5
    Questions:

    Is this a known issue with the cart fragment AJAX update and Elementor CSS scoping?
    Is there an official fix or recommended configuration to ensure the drawer CSS persists after cart fragment updates?
    Should the Off-Canvas cart widget be re-initializing styles after the fragment refresh?

    Thanks for your help.

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 19, 2026 at 08:16

    Hello @Dominic Legare,

    We have not encountered similar issues on other websites. We also checked the issue on your website but did not find any layout problems (please review the private area).

    Please check the Elementor settings under “Integrations → WooCommerce Mini-cart template” and set it to “Disable”, as there may currently be a conflict between the theme’s mini-cart content and the plugin’s mini-cart.

    We kindly ask you to provide temporary wp-admin access in the private content area so that we can examine the issue in more detail.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Dominic Legare
    Dominic Legare
    Participant
    March 19, 2026 at 12:31

    No problem thanks
    Here’s my credentials

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 19, 2026 at 14:38

    Hello @Dominic Legare,

    We previously requested that you disable the integration with the default Elementor mini cart template, as you are using the XStore theme Cart widget in your header. However, it remained active (see: https://prnt.sc/_NToxZv_djgh), so we have now disabled it. The layout of mini-cart now inherited from our theme as shown across our demos.

    Please check again, as we have tested it on our side and confirmed that the styles are now correctly applied. Kindly note that if you require any custom styling, you can add your custom code in the Custom CSS section of the Theme Options.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Dominic Legare
    Dominic Legare
    Participant
    March 19, 2026 at 14:42

    Thanks you are faster that me, i did not have the time yet to disable it.
    i didn’t know that option in Elementor.
    Fun to learn everyday
    Thanks for your help Jack

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 19, 2026 at 15:29

    Hello @Dominic Legare,

    Thank you for your kind message. We’re glad to hear that you discovered a new option in Elementor.
    We’re happy we could assist you, and please don’t hesitate to reach out if you need any further help.

    Best Regards,
    8Theme’s Team

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.