Hey Chuckie;
You should see settings under Settings -> Autoptimize -> JS, CSS & HTML -> CSS Options but there is no “when” to configure, just “what” and “how”. Try to toggle “also aggregate inline CSS” and if the problem persists either try excluding your theme (add wp-content/themes to the comma-separated exclusion list) or try removing the exclusions that are there by default? Let me know how it goes, I’ll be happy to have help more if you can’t get it right (but I’ll need to see things broken on your site to be able to assess the problem).
cheers,
frank
Thread Starter
Chuckie
(@ajtruckle)
Hi Frank
Thanks for getting back to me. Initially I have unticked the aggregate options and now it displays OK. Do you think I should be attempting to switch those check optiosn back on and then add that folder as per your suggestion? Which is best approach?
I would indeed suggest to try to re-activate “aggregate CSS” and first of all try with “also aggregate inline CSS” off (it’s on by default)?
Thread Starter
Chuckie
(@ajtruckle)
Now you will see the problem. I added link to the site to this discussion.
I have just ticked both of those aggregate options and also added teh exclusions folder. Now the site shows wrong. The main logo has wrong background, teh fonts in the widgets (soime of them) are wrong. etc.
Thread Starter
Chuckie
(@ajtruckle)
Please let me know if you need anything ulse to help resolve these issues.
Can you disable (untick) “also aggregate inline CSS” Chuckie?
Thread Starter
Chuckie
(@ajtruckle)
Hi. I think that did it! Doe sit look better for you now too? It does for me.
Thanks.
Note, I still have that “exclusion” entry added to the list as per your suggestion.
-
This reply was modified 4 years, 5 months ago by
Chuckie.
yes, the site looks better now, but when checking the HTML source almost nothing is optimized now. the reason for this is the CDN being used, resulting in AO skipping all those files as it considers them external. the solution would be to either disable the CDN and/ or to set the root CDN field in AO to https://usercontent.one/wp/www.publictalksoftware.co.uk/, can you try that?
Thread Starter
Chuckie
(@ajtruckle)
If I set that link and the try the site it looks very weird now. And if I switch off the CDN it also looks very weird.
I have left it as you said for you to see.
looks kind-of OK to me but I don’t know your site that well off course so here’s a screenshot;

but you might now get better results with “also aggregate inline CSS” back on?
Thread Starter
Chuckie
(@ajtruckle)
Hhm. Well …
I was getting the menu being listed as plain text up the left.
This is what I did:
1. Deactivated CDN (this was part of the domain provider settings).
2. Removed that CDN link you provided.
Now it works. But if I try to add the aggregate option again the stuff goes back to being black.
Since I have removed the CDN setting it is now getting optimised as you’d expect? Perhaps it is because we still have ‘wp-content/themes/’ in the list of exclusions?
yes, indeed now the CSS & JS are getting aggregated and minified all right. you could indeed try optimize further by removing the theme exclusion and re-enabling the “also aggregate inline CSS” option?
Thread Starter
Chuckie
(@ajtruckle)
I think it is ok now! I did what you said. See what you think. Thanks.
Thread Starter
Chuckie
(@ajtruckle)
One thing – in my support forum (bbPress) it uses EnlighterJS plugin for syntax highlighting. Now the highlighting is not working. This is of code.
OK, can you try adding plugins/enlighter/ to comma-separated JS optimization exclusion list?