On/Off button doesn't work
-
Trying it with Chrome but it does nothing.
-
Can you elaborate ?
Did you test it while logged out ? this plugin runs only when you’re not logged in as admin, this way, as the admin you can see the site while building it and others can’t.The button in the plugin settings, doesn’t switch on/off. For me is just a clickable image which does nothing đ
thank you for explaining.
The click event is handled through JavaScript, if it’s not doing anything, my assumption is that there’s a javascript error in the dashboard preventing the click event from running.
Open the element inspector ( in chrome ) and look for errors( usually in red )
Feel free to report back, if the issue is related to our plugin, we’ll do our best to help.
Thanks
Errors:
`Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)
jquery.slider-min.js?ver=1.8.1:1 Uncaught TypeError: Cannot read property ‘split’ of undefined
admin.php?page=under_construction:1 Denying load of chrome-extension://gkojfkhlekighikafcpjkiklfbnlmeio/js/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
2load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-sortable,jquery-ui-datepicker,svâŚ:269 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined`DPI and chrome extension is not a big deal.
the error that’s causing this is jquery.slider-min.js?ver=1.8.1:1
This is a file that’s most likely being imported by a theme or another plugin, and it has an error.
Personally, I am not sure why jquery slider should be loaded into the dashboard.. unless it’s required for the theme you’re using or another plugin.
If you know what is importing that file, disable the import and test.
if you don’t, try disabling one plugin at a time and test at every disable. then try switching themes (just for testing purposes) and test again.You will need to do some debugging to figure out this issue. However, it’s not related to the Construction Mode plugin, it’s coming from some other part of WordPress.
It was the theme.
Thanks!
no problem, glad we got it sorted out.
If you can leave a review for this plugin, that would be great!
Click here to leave a quick feedback: https://wordpress.org/support/view/plugin-reviews/wp-construction-modeSure đ
It may be the theme or maybe a plugin used by the theme (RevSlider). I’m testing it out.
thanks for the updates and the review!! will keep this issue in mind incase it happens to anyone else.
Ok detected. It conflicts with my theme “Sirens” (themeforest). Can’t switch the button and if I change the theme it loses the customization… Too bad.
that’s too bad. is the error showing any other page in the dashboard ?
No, only in your plugin settings section :-/
i’ve marked this down for investigation when we’re working on the next update
thank you for reporting this issue
I’ve added some conditional tags to the code that I hope may resolve the issue you had.
I don’t have the Sirens theme so i wasn’t able to test if what I did works.
For 3.10 version still doesn’t work.
The topic ‘On/Off button doesn't work’ is closed to new replies.