- This topic has 11 replies, 2 voices, and was last updated 3 years, 7 months ago by
Elvin.
-
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 🙂
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.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 🙂
June 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.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 #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.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 #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.
February 2, 2022 at 3:17 pm #2103232Tim
On my site that uses generate press… I have a form in a table (which comes from someone else and I can’t remove the table). And when I inspect with devtools… there is a 1px border coming from all.min.css from generatepress. Where and how do i set that to 0px as it looks terrible….
I looked through all the theme settings and don’t see anything related to that.February 2, 2022 at 10:38 pm #2103488Elvin
StaffCustomer SupportHi Tim,
You can override this specific border by re-applying a border:none; to its specific selector through custom CSS.
Example:
table, th, td { border: none; }
And here’s how to add css – https://docs.generatepress.com/article/adding-css/
-
AuthorPosts
- You must be logged in to reply to this topic.