CSS Overrides

Working with WordPress is something we do on a daily basis and part of working with WordPress is installing plugins written by other people. One thing that developers who write plugins should stop doing, is adding the !important directive to css style sheets. Sometimes we have to override styles and if a developer added the !important statement to an element it makes it hard for developers to override that specific styling. There is no need to actually use the !important statement, except in extreme cases, and if you use IDs and classes in the correct way there is no need to make any style important.

!important should only be used if you do not have access to the HTML and the classes of elements are not created by yourself. Using !important is considered bad practice and should be avoided.