HI, I am using your plugin. It’s the most amazing plugin I found on WordPress, it works. It has customizable colors, your css class has been helping me to to customize design.
1. But there is a problem I am facing, when i turn on the toggle everything changes color scheme as expected, but as soon as I go to some other page it is all gone, I don’t know why this happens. I am using Godaddy Hosting on Cloudflare, along with Autoptimize and Fast Velocity Minify plugins, can you help you me get it consistent, so that it works on each and every page once it is set.
2. Also, I see that you are storing the toggle position in the browser, so that whenever the site is opened through the browser it knows the status, but is it possible, that the storage be based on database tables, the user selects a setting, and the setting remains consistent across all devices where he is logined.
Thanks, And Best Regards, Awesome Plugin
The page I need help with: [log in to see the link]
I think that my problem can simply be solved my small change in my own site, but over all for making a better plugin, consider it my review that rather than cookie you shall use tables to remember user settings. Would love to have this feature, honest review from a customer.
In this very forum, you had earlier stated in an answer to someone,””So if a user turns on the night mode, the browser will remember it and load any other page with night mode on.”
first of all, I want to apologize for so late reply. I have not developed this plugin for some time, but I will fix all the issues now and add some new features.
I see that many people have problems using this plugin in combination with some cache plugins and this is the first thing I’m going to fix.
This will surely be fixed in the next version of the plugin.
Well, i solved a portion of problem on my own. I am not a coder, but what i see is that u insert wp-night-mode css class in body tag.
When toogle the mode on you change the class wp-night-mode to wp-night-mode-on.
I found that due to caching plugins, the class was non-existent.
So i added extra css class wp-night-mode below the body under a div.
So basically if your plugin does not find wp-night-mode class in body tag, it finds it in my div tag and changes it to on. Making the whole thing work
It may be that i have interpreted something wrong. But adding a div solved my inconsistency problem.
It would still be good if there could a storage of status of night mode in database for each logged in user like YouTube does. And allow storing a cookie for it if the user is logged out.
And ya because i added the div, it shows the button to toggle it on each and every page, so i using inline css did display:none; so that the button is not visible.
There is no need for extra classes or div’s.
I’ve released new plugin version and button will now work with cache plugins also.
Thanks. I have updated the plugin yesterday, and seems pretty good. I have removed the class and so far so good. This update has been really helpful for it.
Another thing i want to understand is how this plugin works, i was going through inspect element and sources for my site and i could see various files loaded on page load but in wp-content there were files from other plugins being loaded but not this.
As far as i know it works using Jquery, but is it inline js or what. Because in sources tab of inspect elemeny your plugin was not visible.
In nut shell i would like to understand how your plugin actually works. For genuine curiosity because this is the only plugin for Dark Theme in frontend.
Also as i mentioned in start is there a plan for using databases instead of cookies in future. My customers have loved your plugin at my site https://Milyin.com/ and there are 2 other sites that would be starting to use your plugin because now the cavhing issue is solved. One of the other site is https://taskdream.com/
The plugin is actually very light and simple. It basically works with a small amount of JS and CSS code.
I’m not sure why you can’t see anything in sources, but there should be one CSS and one JS files loaded in the frontend.
- The topic ‘Inconsistent In Its Working’ is closed to new replies.