• Resolved alprio

    (@alprio)


    Hello team,
    Thanks for the great plugin.

    I have a problem.
    When i enable the Aggregate CSS-files? it breakes my homepage.
    I use elementor + woodmart. I cant find the related css that does that.
    Can someone help ?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    That’ll require some trial & error alprio, can you try:

    1. disabling “also aggregate inline CSS”
    2. OR adding wp-content/themes to the comma-separated CSS optimization exclusion list
    3. OR adding wp-content/plugins to the comma-separated CSS optimization exclusion list
    Thread Starter alprio

    (@alprio)

    Hey ,
    If I add wp-content/themes/ it works correct.
    Can somehow , narrow down that particular css ?
    Cause if I add the exception I get 155 requests.
    Thank you !

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that again will take trial and error; all woodmart CSS seems to be in themes/woodmart/css/parts/, so search for that string in the HTML source and try excluding each file that is on that path one by one?

    alternatively you could try *seeing* what on the page breaks when CSS optimization is active and based on that and on the filesnames in the HTML and some luck/ common sense try to identify which file(s) might need exclusion?

    Thread Starter alprio

    (@alprio)

    I see. I excluded the /parts folder and it works as it should.
    So I guess is something in there. It breaks the frontend centered layout.
    Everything goes to the left.

    I guess I have to do it one by one.
    Thanks for the help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, instead of excluding (part of) the theme, try removing the default wp-content/uploads exclusion maybe? that directory contains /2023/11/xts-theme_settings_default-1699557087.css and it looks like that default exclusion breaks the CSS order, leading to the problem you descibe.

    do take care however of the Autoptimize cache size as typically files in wp-content/uploads change and can cause new AO files being cached, making the cache grow too quick ..

    Thread Starter alprio

    (@alprio)

    Damn !! that file did the trick !
    wp-content/uploads/2023/11/xts-theme_settings_default-1699557087.css/

    Is it safe now ? I have it like this.

    , admin-bar.min.css, dashicons.min.css, wp-content/cache/, wp-content/uploads/2023/, wp-content/uploads/2022/, wp-content/uploads/wp-forms/, wp-content/uploads/cache/, wp-content/uploads/ao_ccss/, wp-content/uploads/ast-shipping-providers/, wp-content/uploads/mailster/, wp-content/uploads/rank-math/, wp-content/uploads/wc-logs/, wp-content/uploads/woocommerce_uploads/, wp-contents/uploads/wpallimport/, wp-content/uploads/revslider/, wp-content/uploads/elementor/screenshots/

    It works now and I get 55 requests!
    You saved me hours of searching!
    Thank you sir! You are very kind!

    • This reply was modified 1 year ago by alprio.
    Thread Starter alprio

    (@alprio)

    I get these errors.
    How can I fix it ? is it possible from my side?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    what errors are those alprio ?

    Thread Starter alprio

    (@alprio)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, so do you also get those errors when “optimize JS” is off?

    Thread Starter alprio

    (@alprio)

    yes I do get errors when autoptimize is off.
    So I guess it’s something els and when I enable autoptimize it seems that it comes from your plugin.
    I have to take a look at it.

    thank you again.
    BTW , elementor folder does the conflict not the xts file.
    I have these settings right now. I included every folder , except elementor.


    , admin-bar.min.css, dashicons.min.css, wp-content/cache/, wp-content/uploads/2023/, wp-content/uploads/2022/, wp-content/uploads/wp-forms/, wp-content/uploads/cache/, wp-content/uploads/ao_ccss/, wp-content/uploads/ast-shipping-providers/, wp-content/uploads/mailster/, wp-content/uploads/rank-math/, wp-content/uploads/wc-logs/, wp-content/uploads/woocommerce_uploads/, wp-contents/uploads/wpallimport/, wp-content/uploads/revslider/, wp-content/uploads/elementor/screenshots/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    try making it just admin-bar.min.css, dashicons.min.css, wp-content/cache/, I *think* that might work too .. ??

    Thread Starter alprio

    (@alprio)

    if I remove /wp-content/uploads entirely, it will optimize the entire folder.
    is it ok to do so ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the only thing to watch out for is cache size really, keep an eye out for that the next week or so. if it does not grow quickly, you should be good to go ??

    Thread Starter alprio

    (@alprio)

    Ok then , If you say so , I will !
    Thanks again for your time ! You rock !
    Have a nice day !

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Aggregate CSS-files? Breaks website’ is closed to new replies.