Theme Settings Developer Mode Enabled
-
Hello.
We host our site on Cloudways and not localhost environment but on the theme settings this message Developer Mode Enabled appears top right.
Is there any disadvantage? Can we disable it? I am suspecting because of the internal cloudway’s server host, redux framework sees that it is on a localhost environment.
Is there any way to disable it?
Thank you.
Hello,
You will need to find file wp-config.php in WordPress root catalog, and disable DEBUG as shown:
http://prntscr.com/jdmhuc
Best Regards
define(‘WP_DEBUG’, false);
Is already presented in the wp-config.php file.
Still the notice appears on theme setings
Hello,
Сould you please provide a screenshot of the error?
Best Regards
I meant the context of the error. https://prnt.sc/jdof60
Best Regards
Sorry, my bad.
http://prntscr.com/jdoiyo
It says that i am on a localhost environment which we are not.
We really do not know why you have such an error, we can offer you to hide it via CSS. Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_hide_redux_error() {
echo '<style>
.redux-container #redux-header .display_header .redux-dev-mode-notice-container {
display: none;
}
</style>';
}
add_action( 'admin_head', 'woodmart_hide_redux_error' );
Best Regards
I think it is because cloudways hosting packet we have, has an internal localhost ip something like that.
We don’t mind this notification. We just want to know if it has any hidden developer features enabled that they are not supposed to be enabled on production environment.
Thank you
Great, we are glad that you have found the solution.