Title: Switch and refresh browser
Last modified: October 22, 2022

---

# Switch and refresh browser

 *  Resolved [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/)
 * Hey there,
 * This is a nice and cool plugin for the community!
 * However, I noticed that – sometimes – it fails to switch correctly from dark 
   to light and back to dark again.
 * That is, in some browsers, some of the colors are switched back from light to
   dark the wrong way.
 * The issue, however, goes away the moment you refresh the page (F5).
 * Is there a snippet of code that you could post here to make the switch refresh
   the page at the same time is switching from light to dark and vice versa?
 * Having that extra function will prevent errors with dark page switching the wrong
   colors in all browsers.
 * Let me know if you could that.
 * Thanks!
    -  This topic was modified 3 years, 7 months ago by [borisv](https://wordpress.org/support/users/borisv/).

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

 *  Plugin Support [toukirwpdev](https://wordpress.org/support/users/toukirwpdev/)
 * (@toukirwpdev)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16135733)
 * Sometimes the color discrepancy may be due to the theme css getting higher priority.
   It should work fine if you can set those colors to important via custom css for
   the elements that show the wrong color.
 * Refer to this video to know how to use the “WP Dark Mode” custom CSS feature.
   👉 [Tutorial](https://youtu.be/oZKvZA0HUD8)
 * Thanks.
 *  Thread Starter [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16136909)
 * Hi [@toukirwpdev](https://wordpress.org/support/users/toukirwpdev/),
 * This only happens when you switch back and forth a few times with some browsers
   and it’s not worth taking the time to fixing color issues field by field.
 * Adding a refresh value to the switch would make any coloring issues go away but
   I understand why you would be reluctant to volunteer the code.
 * I am sure many people experience this issue only they don’t report it.
 * If you want to get a tsunami of 5 star ratings, please provide that code snippet.
 * I just don’t have time to work on it, but would be the first one to rate your
   plugin not only 5 star, but a MUST HAVE plugin.
 * Regards,
 *  [jeroenj](https://wordpress.org/support/users/jeroenj/)
 * (@jeroenj)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16163839)
 * I don’t know why my post got deleted but I have the same issue. It’s not related
   to overruling CSS. After a F5 it’s solved. I agree this should be looked at and
   adjusted with the option of a refresh by clicking on the dark mode button.
 *  Thread Starter [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16174432)
 * [@jeroenj](https://wordpress.org/support/users/jeroenj/)
    The developer probably
   believes that this issue will provide even more premium sales, so he won’t look
   into this. What he doesn’t know is that it’s another reason why many users (including
   me) won’t be giving him 5 a star rating.
 *  Plugin Support [toukirwpdev](https://wordpress.org/support/users/toukirwpdev/)
 * (@toukirwpdev)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16181675)
 * Hi [@borisv](https://wordpress.org/support/users/borisv/),
 * We always prioritize your user satisfaction and we’re continuously improving 
   our plugin. Would you kindly, share the link to your website with us so we can
   check the issue?
 * Thanks.
    -  This reply was modified 3 years, 7 months ago by [toukirwpdev](https://wordpress.org/support/users/toukirwpdev/).

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

The topic ‘Switch and refresh browser’ is closed to new replies.

 * ![](https://ps.w.org/wp-dark-mode/assets/icon-256x256.gif?rev=2872214)
 * [WP Dark Mode - Improve Accessibility with AI Powered Dark Theme](https://wordpress.org/plugins/wp-dark-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dark-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dark-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dark-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dark-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dark-mode/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [toukirwpdev](https://wordpress.org/support/users/toukirwpdev/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/switch-and-refresh-browser/#post-16181675)
 * Status: resolved