Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #171946

    Is it possible to remove the following code from the theme without removing the ‘debugging mode’?

    <!–
    Debugging Info for Theme support:

    Theme: Enfold
    Version: 2.3.1
    Installed: enfold
    AviaFramework Version: 1.8.5
    AviaBuilder Version: 0.4
    – – – – – – – – – – –
    ChildTheme: Enfold – Magnetik
    ChildTheme Version: 1.0
    ChildTheme Installed: enfold

    ML:64-PU:42-PLA:22
    –>

    #172955

    Hi unclemurray!

    You can add this on functions.php:

    remove_action('wp_head','avia_debugging_info',1000);

    Remove browser cache then reload the page.

    Best regards,
    Ismael

    #173249
    This reply has been marked as private.
    #173507

    Hello!

    Try following code instead

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

    and insert it at the very bottom of functions.php.

    Best regards,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove debugging code from page source.’ is closed to new replies.