Title: Adding Custom CSS
Last modified: November 9, 2020

---

# Adding Custom CSS

 *  [doktordane](https://wordpress.org/support/users/doktordane/)
 * (@doktordane)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-css-11/)
 * Hello All,
 * I cannnot remove the “search” menu from my site and I cannot remove the “most
   popular” widget-like thing (which is not a widget) from my site. I have found
   custom CSS to add that is supposed to remove both of these things, but nothing
   ever works. In fact, no custom CSS I have added has had any impact on the site
   whatsoever. Can something interfere with custom CSS?
 * Thanks,
    Dane
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-custom-css-11%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Prabhat](https://wordpress.org/support/users/prabhatrai/)
 * (@prabhatrai)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-css-11/#post-13639550)
 * Hey [@doktordane](https://wordpress.org/support/users/doktordane/),
    Add the 
   below CSS styling in **main.css** file to remove the search bar:
 *     ```
       #search-wrapper {
           display: none !important;
       }
       ```
   
 * CSS file path: wp-content/themes/trance/assets/css/**main.css**
 *  Thread Starter [doktordane](https://wordpress.org/support/users/doktordane/)
 * (@doktordane)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-css-11/#post-13639606)
 * Hello,
 * Thank you, Prabhat Kumar Rai. That worked immediately. Can I add ‘!important’
   to any code that isn’t working to activate it?
 * Thanks again,
 * Dane
 *  [Prabhat](https://wordpress.org/support/users/prabhatrai/)
 * (@prabhatrai)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-css-11/#post-13639843)
 * Hey [@doktordane](https://wordpress.org/support/users/doktordane/),
    Yes, you
   can add “!important” to any code but, it also has certain conditions for working.
 * Check out the below article to know more about “!important” property in CSS:
   
   [https://www.educative.io/edpresso/what-is-the-important-property-in-css](https://www.educative.io/edpresso/what-is-the-important-property-in-css)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Custom CSS’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Prabhat](https://wordpress.org/support/users/prabhatrai/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-css-11/#post-13639843)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
