Title: Night mode for posts ?
Last modified: May 9, 2019

---

# Night mode for posts ?

 *  Resolved [unmeltmagazine](https://wordpress.org/support/users/unmeltmagazine/)
 * (@unmeltmagazine)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/)
 * Hello everyone !
 * I would like to display a little toggle (like a ON/OFF button), like at the top
   left or top right corner. I would like this toggle to display a darker color 
   background on the posts, and display a light font color, just like a night mode(
   like the Facebook Messenger one).
 * Is it possible to do with CSS ?
 * I tried WP Night Mode, which is working pretty nice, the only problem is that
   it is not customizable enough.
 * Thanks for your answers 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnight-mode-for-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11514815)
 * Hey there,
 * I can help with some CSS to make the site dark, but I’m afraid adding a toggle
   option for the dark mode is too complex to provide code for. To add the toggle,
   you’ll need to add a button to your site and some Javascript to switch the dark
   mode on/off when a visitor clicks.
 * The WP Night Mode plugin is probably the best solution as of now for this feature.
 *  Thread Starter [unmeltmagazine](https://wordpress.org/support/users/unmeltmagazine/)
 * (@unmeltmagazine)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11515894)
 * Hello, thanks for the quick answer !
    Finally, I decided to cancel that idea,
   and to simply permanently display a dark theme all over my website.
 * However, I need your help for another question.
 * I would like to change the color of all the text (post title, read mode text 
   and excerpt text) displayed in blog archives (main page) to a #0A0A0A color, 
   with a #6E00FF color displayed on hover.
 * I already did it on the posts themself with the following code
 *     ```
       .singular-post .entry-content,
       .singular-post .entry-title,
       .singular-post .comments,
       .singular-post .comments a,
       .singular-post .comments a:link,
       .singular-post .comments a:visited,
       .singular-post .entry-content a,
       .singular-post .entry-content a:link,
       .singular-post .entry-content a:visited {
         color: #fff;
       ```
   
 * Is there any CSS code to do the same in the archives ?
 * Thanks for the answer 🙂
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11520381)
 * Give this CSS a shot:
 *     ```
       .excerpt,
       .excerpt-content,
       .excerpt a,
       .excerpt a:link,
       .excerpt a:visited {
         color: #fff;
       }
       ```
   
 * If it needs updating let me know and I can continue adjusting the code to get
   it working right.
 *  Thread Starter [unmeltmagazine](https://wordpress.org/support/users/unmeltmagazine/)
 * (@unmeltmagazine)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11521188)
 * Ok, thanks ! It works perfectly 🙂
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11522402)
 * Great! Glad I could help 🙂

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

The topic ‘Night mode for posts ?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/tracks/1.81/screenshot.png)
 * Tracks
 * [Support Threads](https://wordpress.org/support/theme/tracks/)
 * [Active Topics](https://wordpress.org/support/theme/tracks/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/tracks/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/tracks/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/night-mode-for-posts/#post-11522402)
 * Status: resolved