• Resolved bostjanlaba

    (@bostjanlaba)


    I’ve enabled Autoptimize and it worked. Then I added some custom CSS to the theme and emptied cache. The custom CSS was not working. Then I disabled Autoptimize and it worked. Reenabled Autoptimize – back to the start.

    Point is, after adding custom CSS the Autoptimize does not regenerate inline CSS when emptying cache.

    Can you please fix this so I can enable Autoptimize again?

    Thanks

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

    (@optimizingmatters)

    Not sure I understand, can confirm the problem goes away when you disable CSS optimization and if so can you list your Autoptimize CSS settings?

    frank

    Thread Starter bostjanlaba

    (@bostjanlaba)

    The setting that matters is this:
    Also aggregate inline CSS?

    If enabled it “ignores” my custom css (added after Autoptimize was installed). If I disable it, my css is in effect.

    So my guess it the RE-aggregation of CSS files does not happen on cache emptying.

    Bostjan

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Not really; when you clear the cache (or when AO “sees” new CSS) it will generate new optimized CSS-files, CSS order can matter as CSS can get overwritten by other CSS. What is likely happening is that you have some CSS excluded from being autoptimized (maybe page builder one in wp-content/uploads) and when also aggregating inline CSS your custom CSS is loaded before the excluded one and hence is overwritten.

    Just keep “also aggregate inline CSS” off or alternatively exclude your custom CSS and all will be well 🙂

    Thread Starter bostjanlaba

    (@bostjanlaba)

    Okey dokey, thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome Bostjan, feel free to leave a review of the plugin and support here! 🙂

    frank

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

The topic ‘Inline CSS not regenerated’ is closed to new replies.