The :not(selector) selector matches every element that is NOT the specified element/selector. Example of use: :not(p) { background: #ff0000; } Or :not(.page-id-000) { display: none; } Source: https://www.w3schools.com/cssref/sel_not.asp PrevNext