Woocommerce-all.min.css and other theme CSS files (like elementor-all-widgets.min.css) are extremely

This topic has 5 replies, 2 voices, and was last updated 1 months, 3 weeks ago ago by regencycigaremporium

  • Avatar: regencycigaremporium
    regencycigaremporium
    Participant
    October 14, 2025 at 04:04

    Eversince the latest theme update, our XStore-generated CSS files under /wp-content/themes/xstore/css/ turned out to be very large and appear in the background CSS folder of WP Rocket. Even with WP Rocket’s Optimize CSS Delivery & Reduce Unused CSS, these global styles load on all pages. Can you confirm if XStore supports conditional loading or modular CSS to reduce file size?

    4 Answers
    Avatar: regencycigaremporium
    regencycigaremporium
    Participant
    October 14, 2025 at 04:05
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 14, 2025 at 07:33

    Hello @regencycigaremporium,

    Could you please try adding the following snippet to your child theme’s functions.php file:

    add_filter('etheme_elementor_force_load_global_assets', function($value, $in_preview) {
        return $in_preview;
    }, 10, 2);

    After that, please clear your cache and check if the issue persists.

    Best regards,
    The 8Theme Team

    Avatar: regencycigaremporium
    regencycigaremporium
    Participant
    October 14, 2025 at 10:09

    Thank you so much!

    Avatar: regencycigaremporium
    regencycigaremporium
    Participant
    October 14, 2025 at 10:09

    Thanks for the support! My topic “woocommerce-all.min.css and other theme CSS files (like elementor-all-widgets.min.css) are extremely” has been successfully resolved.

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

The issue related to '‘woocommerce-all.min.css and other theme CSS files (like elementor-all-widgets.min.css) are extremely’' has been successfully resolved, and the topic is now closed for further responses

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