• mhogas

    (@mhogas)


    Hey!

    I’ve been trying to find ways of excluding one or more stylesheets, by their IDs (wp_style handle).

    I found the breeze_filter_css_exclude filter but it doesn’t help much because it only accepts filepaths.

    In my case i’m only able to provide a registered style’s handle.

    It would be great to also have the ability to just exclude with a “data-no-optimize” or “data-noptimize” attribute which seems to be most commonly used by other plugins.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Breeze perform exclusion from minification through file path. It also support wild card exclusion.

    Do you want to exclude on the basis of ID?

    Thread Starter mhogas

    (@mhogas)

    Yes, i wanted to exclude using the stylesheet’s ID . For example in Elementor, the WP style handle for the stylesheet below is “elementor-frontend” (the “-css” is appended by WP).

    <link rel='stylesheet' id='elementor-frontend-css' href='....' type='text/css' media='all' />

    It would be great if i could add that WP handle.

    Or, even better, it would be great if you could include a special attribute match (like data-no-optimize=”” ) to skip them from being processed.

    Plugin Author adeelkhan

    (@adeelkhan)

    Thanks for your feedback. Your point added in our future development list.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude from combining CSS by stylesheet ID’ is closed to new replies.