Title: CSS classes should be plugin specific!
Last modified: August 13, 2023

---

# CSS classes should be plugin specific!

 *  Resolved [Lee](https://wordpress.org/support/users/leecollings/)
 * (@leecollings)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/css-classes-should-be-plugin-specific/)
 * Hello, whilst this is a great plugin to link account and website, there are some
   fundamental issues that are advised right from the very start when developing
   WordPress plugins.
 * The CSS files for your admin styles are NOT plugin specific i.e. there are declarations
   in this file that are affecting other parts of WordPress.
 * As an example, in the file buy-me-a-coffee-admin.css there are declarations that
   look like this:
 *     ```wp-block-code
       .orange {
         background-color: #ff813f;
       }
   
       .purple {
         background-color: #5f7fff;
       }
   
       .violet {
         background-color: #bd5fff;
       }
   
       .red {
         background-color: #ff5f5f;
       }
   
       .turquoise {
         background-color: #79d6b5;
       }
       ```
   
 * Having this CSS file loaded is going to affect ANY div that contains these classes,
   not just those being used with the widget or button.
 * This is highlighted in the WordPress plugin docs when creating plugins:
 * [https://developer.wordpress.org/plugins/plugin-basics/best-practices/#prefix-everything](https://developer.wordpress.org/plugins/plugin-basics/best-practices/#prefix-everything)
 * As a result, this causes items in the WordPress admin area to look completely
   misconfigured and broken (such as the Site Health dashboard widget).
 * Please fix this. If you would like me to create a pull request on GitHub, I will
   happily do so.

The topic ‘CSS classes should be plugin specific!’ is closed to new replies.

 * ![](https://ps.w.org/buymeacoffee/assets/icon.svg?rev=3278708)
 * [Buy Me a Coffee - Button and Widget Plugin](https://wordpress.org/plugins/buymeacoffee/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buymeacoffee/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buymeacoffee/)
 * [Active Topics](https://wordpress.org/support/plugin/buymeacoffee/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buymeacoffee/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buymeacoffee/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Lee](https://wordpress.org/support/users/leecollings/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/css-classes-should-be-plugin-specific/)
 * Status: resolved