- This topic has 9 replies, 3 voices, and was last updated 1 year, 6 months ago by Tom.
June 19, 2019 at 10:19 am #934945sg
Hi, on the topic of optimizations, I’m trying to understand about this particular file.
is this created on the fly after selecting all plugins values?June 19, 2019 at 10:21 am #934950TomLead DeveloperLead Developer
No, this file is a combination of these three core CSS files:
unsemantic-grid-lite.min.css style.min.css mobile.min.css
Let me know if you need more info 🙂June 19, 2019 at 2:52 pm #935178sg
Great that explain why the class keep repeating at my custom optimizations ,
i was wondering if its safe to dequeue these files and manually combine them and update them in one single file for each major updates.
i could shed 3 more request 🙂
sorry, I am just a sucker for page optimizations 🙁June 19, 2019 at 3:08 pm #935191TomLead DeveloperLead DeveloperJune 19, 2019 at 3:39 pm #935210sg
OK can i add all.min.css to the dequeue list ?
I am testing that now.
one major issue, it seems when i dequeue the all.min.css the inline customs are missing.
when I add it back its there.
is there any relation between these 2 ?June 19, 2019 at 3:43 pm #935215TomLead DeveloperLead Developer
If you have the Combine CSS option turned on (Customize > General), then yes, you’ll want to dequeue that one.
All of the inline CSS is attached to the handle that style.min.css or all.min.css use:
If you re-add a stylesheet, you need to use that handle in the
wp_enqueue_style()function.June 19, 2019 at 3:59 pm #935222sg
could you explain more in detail on this please. many thanks
” All of the inline CSS is attached to the handle that style.min.css or all.min.css use: generate-style “June 20, 2019 at 8:14 am #936014TomLead DeveloperLead Developer
The inline CSS using
wp_add_inline_style(), which attaches itself to an existing CSS file. That file has this “handle” (ID):
If you remove that handle, the inline CSS doesn’t know where to go.
If you remove
generate-style, you must re-add it in some way.January 27, 2020 at 8:18 pm #1146402Chris
Sorry to chime in here but I’m running into the same thing. I’m a seasoned developer but completely new to WordPress….and I also noticed the duplicate class selectors/files between style.css/all.min.css and was curious if I turn off the “Combine CSS” feature, will it remove the duplicates while also still provide ability to re-use the unsemantic grid? Unminified css would still be preferrable to duplicated.
Thanks!January 28, 2020 at 10:22 am #1147360TomLead DeveloperLead Developer
Turning the option off won’t remove any duplicates, it will just load those 3 stylesheets instead of combining them into one.
The duplicates you’re seeing are just those 3 files combined into one file.
- You must be logged in to reply to this topic.