• Resolved harryfear

    (@harryfear)


    Hi!

    I hope you can help.

    Thanks for all your work on this amazing plugin. Just incredible.

    I’m using “Woody Snippets” and a “CSS snippet” to insert CSS into an ‘external CSS file’ in the <head>.

    The file gets optimised by AO, but does not get combined. It gets “single_.css”. Is this a plugin processing order issue? I guess not, as if AO can touch the Woody code, it surely can combine it?

    I’m doing this because I had the CSS code in the ‘Theme > Customiser > CSS Code’ section and AO didn’t seem to Optimise it.

    I then tried used the ‘Header Footer Code Plugin’ and put the CSS in there. AO only seemed to optimise that inline code and – did successfully – combine it, but only some of the time(?).

    If I need to re-work my setup, please advise on which plugin would be best to get CSS inserted before </head> that will get AO-optimised and AO-combined.

    Many thanks in advance,

    Harry.

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

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

    (@optimizingmatters)

    Is the woody file located in wp-content/uploads or wp-content/cache by any chance? If so these are excluded by default to prevent potential cache size issues, but you can always try editing the CSS optimization exclusion list?

    hope this helps,
    frank

    Thread Starter harryfear

    (@harryfear)

    Hi, Frank!

    The file that’s being generated is at:

    <link rel='stylesheet' id='generic-styles-css' href='/wp-content/uploads/winp-css-js/generic-styles.css?ver=1558938051' type='text/css' media='all' />

    The CSS is untouched when Autoptimize is disabled (obviously).

    When Autoptimize is working, it generates this:

    <link rel='stylesheet' id='generic-styles-css' href='/wp-content/cache/autoptimize/css/autoptimize_single_28e8f218210504dbf7a270f126a305fb.css?ver=1558938051' type='text/css' media='all' />

    Autoptimize minifies the CSS but doesn’t include the CSS in the combine with other CSSs, but rather leaves this _single_.

    Best,

    Harry.

    Thread Starter harryfear

    (@harryfear)

    Yup, that was it:

    If I remove “wp-content/uploads/” from the exclusion list, Autoptimize finds the CSS file.

    My bad!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy it works, feel free to leave a review of the plugin and support here! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘‘Single’ “Woody Snippet” CSS file not being combined, only optimised’ is closed to new replies.