- This topic has 9 replies, 3 voices, and was last updated 11 months, 3 weeks ago by
Tom.
-
AuthorPosts
-
June 19, 2019 at 10:19 am #934945
sg
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 #934950Tom
Lead DeveloperLead DeveloperHi there,
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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 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.wp_dequeue_style(‘generate-sticky’); //
wp_dequeue_style(‘generate-blog’); //plugins/gp-premium/blog/functions/css/style-min.css
wp_dequeue_style(‘generate-menu-logo’); ///plugins/gp-premium/menu-plus/functions/css/menu-logo.min.css
wp_dequeue_style(‘generate-navigation-branding’); //plugins/gp-premium/menu-plus/functions/css/navigation-branding.min.cssi could shed 3 more request π
sorry, I am just a sucker for page optimizations π
June 19, 2019 at 3:08 pm #935191Tom
Lead DeveloperLead DeveloperYou can do that if you don’t mind updating your custom file every time we make a change to one of those files π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 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 #935215Tom
Lead DeveloperLead DeveloperIf 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:
generate-style
If you re-add a stylesheet, you need to use that handle in the
wp_enqueue_style()
function.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 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 #936014Tom
Lead DeveloperLead DeveloperThe inline CSS using
wp_add_inline_style()
, which attaches itself to an existing CSS file. That file has this “handle” (ID):generate-style
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.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 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 #1147360Tom
Lead DeveloperLead DeveloperTurning 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.