sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.72k stars 176 forks source link

Problems with WordPress. #1

Closed Suleman-Elahi closed 4 years ago

Suleman-Elahi commented 5 years ago

1: Widget doesn't show up on some themes. 2: Widget is not clickable on some themes. 3: Webpage Title and Website title are being darked out after activating it.

image

--> Only worked for me on WordPress's Twenty Nineteen Theme

Tip: Add topics to the GitHub repo.

sandoche commented 5 years ago

Have you tried to debug with z-index ? https://github.com/sandoche/Darkmode.js#debug

meisterleise commented 5 years ago

I've tested it on 2 WP websites right now. It doesn't work. What a pitty!! :(

sandoche commented 5 years ago

Have you tried this:

.darkmode-layer, .darkmode-toggle {
  z-index: 500;
}
meisterleise commented 5 years ago

@sandoche of course! (even with z=22500)

This is my testing site for a limited time: deleted

sandoche commented 5 years ago

I don't find the button. Also don't think it will solve the problem but you can try using this Wordpress plugins: https://wordpress.org/plugins/blackout-darkmode-widget/ https://wordpress.org/plugins/darkmode/