Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1122954

    Hi,

    this snippet from @yigit does not work anymore with ENFOLD 4.5.7, although I have activated this function, the debug info is still shown in the source code. I know, that it has worked perfectly some versions before:
    https://kriesi.at/support/topic/debugging-info-for-theme-support/#post-768947

    function avia_remove_debug() { 
    remove_action('wp_head','avia_debugging_info',1000); 
    } 
    add_action( 'init', 'avia_remove_debug');

    Any changes for this snippet please, that work?

    NOTE: I DO NOT USE A CHILD THEME !
    Thank you.

    #1123307

    Hey COLORIT,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #1123521

    don’t know, why you need it, my site is not online, but you can check this snippet at your own demo installation and you will see, too, that the snippet of @yigit does not work, thanks.

    #1124014

    Hi,

    Thank you for the update.

    You can replace the old snippet with the following code.

    function ava_remove_debug() { 
        remove_action('wp_head','avia_debugging_info',9999999);
        remove_action('admin_print_scripts','avia_debugging_info',9999999);
    } 
    add_action( 'after_setup_theme', 'ava_remove_debug');
    

    Best regards,
    Ismael

    #1124212

    great, that works fine, thanks a lot, Ismael!

    #1124229

    Hi,

    Im glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Snippet for removing debug info from source code view does not work anymore’ is closed to new replies.