Site logo

Archived topic

all.min.css

11 replies · Started by sg on June 19, 2019

Viewing posts 1–12 of 12

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?

Hi 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 :)

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.css

i could shed 3 more request :)

sorry, I am just a sucker for page optimizations :(

You can do that if you don't mind updating your custom file every time we make a change to one of those files :)

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 ?

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: generate-style

If you re-add a stylesheet, you need to use that handle in the wp_enqueue_style() function.

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 "

The 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.

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!

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.

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.

This archived topic is closed to new replies.