Title: Problem with dark mode for some elements
Last modified: September 25, 2019

---

# Problem with dark mode for some elements

 *  Resolved [richardzed](https://wordpress.org/support/users/richardzed/)
 * (@richardzed)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problem-with-dark-mode-for-some-elements/)
 * Hi there.
    I have installed and activated the plugin but there is a problem. 
   There are some parts of the site, example header, menu, some images, etc., that
   I don’t want that appear in night mode. I have also tried with CSS code but nothing
   changed.
 * Hoping to find a solution.
 * Richard.

Viewing 1 replies (of 1 total)

 *  Plugin Author [markoarula](https://wordpress.org/support/users/markoarula/)
 * (@markoarula)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problem-with-dark-mode-for-some-elements/#post-12003691)
 * Hi,
 * you can try to solve this by using :not() selector.
 * Here is the example on how to skip header:
 *     ```
       body.wp-night-mode-on * :not(header) {
           background: #000000;
       }
       ```
   
 * You can add class or ID inside not() and you can add as much as you like:
 * `body.wp-night-mode-on * :not(.header):not(#footer):not(.some-image) {
    background:#
   000000; }
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘Problem with dark mode for some elements’ is closed to new replies.

 * ![](https://ps.w.org/wp-night-mode/assets/icon-128x128.png?rev=1894661)
 * [WP Night Mode](https://wordpress.org/plugins/wp-night-mode/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-night-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-night-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-night-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-night-mode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [markoarula](https://wordpress.org/support/users/markoarula/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/problem-with-dark-mode-for-some-elements/#post-12003691)
 * Status: resolved