Title: Specificity in CSS
Last modified: March 14, 2021

---

# Specificity in CSS

 *  Resolved [blueocto](https://wordpress.org/support/users/blueocto/)
 * (@blueocto)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/specificity-in-css/)
 * A client must have updated your plugin and it’s broken styles on a custom theme.
 * The CSS you’re using is far too specific, it’s making it bloated to overwrite
   them.
 * Instead of having the declaration “.directorist-content-active a” on the body
   element .. which overwrites every single A element on the website, can you not
   add classes closer to that which you wish to style.
 * It’s the “cascade” in the stylesheets you don’t seem to be understanding?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Syed Galib Ahmed](https://wordpress.org/support/users/syedgalibahmed/)
 * (@syedgalibahmed)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/specificity-in-css/#post-14212645)
 * Hello,
 * Thank you for reaching us.
 * We’re sorry for the specificity issue on our CSS. We’re working on the improvements
   to our code. Hopefully, it will be fixed in the upcoming release.
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Specificity in CSS’ is closed to new replies.

 * ![](https://ps.w.org/directorist/assets/icon-256x256.gif?rev=3185058)
 * [Directorist: AI-Powered Business Directory, Listings & Classified Ads](https://wordpress.org/plugins/directorist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/directorist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/directorist/)
 * [Active Topics](https://wordpress.org/support/plugin/directorist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/directorist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/directorist/reviews/)

## Tags

 * [bloat](https://wordpress.org/support/topic-tag/bloat/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)
 * [sass](https://wordpress.org/support/topic-tag/sass/)
 * [specificity](https://wordpress.org/support/topic-tag/specificity/)

 * 1 reply
 * 2 participants
 * Last reply from: [Syed Galib Ahmed](https://wordpress.org/support/users/syedgalibahmed/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/specificity-in-css/#post-14212645)
 * Status: resolved