Home New Guten Forums WoodMart support forum Theme Settings Developer Mode Enabled

Theme Settings Developer Mode Enabled

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #56005

    newsprince
    Participant

    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.

    #56014

    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

    #56018

    newsprince
    Participant

    define(‘WP_DEBUG’, false);

    Is already presented in the wp-config.php file.

    Still the notice appears on theme setings

    #56035

    Eric Watson
    Participant

    Hello,

    Сould you please provide a screenshot of the error?

    Best Regards

    #56044

    newsprince
    Participant
    #56053

    Eric Watson
    Participant

    I meant the context of the error. https://prnt.sc/jdof60

    Best Regards

    #56057

    newsprince
    Participant

    Sorry, my bad.

    http://prntscr.com/jdoiyo

    It says that i am on a localhost environment which we are not.

    #56070

    Eric Watson
    Participant

    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

    #56071

    newsprince
    Participant

    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

    #56072

    newsprince
    Participant
    #56073

    Eric Watson
    Participant

    Great, we are glad that you have found the solution.

Viewing 11 posts - 1 through 11 (of 11 total)