WordPress.org

Forums

Autoptimize
[resolved] How to exclude other plugin's style.css only? (7 posts)

  1. wpmubp
    Member
    Posted 2 years ago #

    I'm having trouble excluding calendarize.it plugin style.css.

    WP themes and plugins mostly use style.css. How does AO know the style.css I type in to exclude the specific plugins file is different from other style.css?

    https://wordpress.org/plugins/autoptimize/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    assuming the "offending" style.css lives in wp-content/plugins/calenderize.it/css/style.css, you could simply add "calenderize.it/css/style.css" to the CSS exclusion list.

    hope this helps,
    frank

  3. wpmubp
    Member
    Posted 2 years ago #

    Thanks for your advise!

  4. wpmubp
    Member
    Posted 2 years ago #

    Is there any method/option to exclude a certain plugin?

    For example calendarize.it has many CSS and JS files, and it's hard to find out each file name and add them to exclusion list.

  5. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    well, assuming the example above, you could add "plugins/calenderize.it" to the JS and CSS exclusion-list.

  6. wpmubp
    Member
    Posted 2 years ago #

    Thank you again! I think you should add this exclusion example to FAQ as I didn't know I can exclude by "plugins/pluginname."

  7. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    That's a good idea, will add it for the next release!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic