Tagged: code, devin-docs
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
–>
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
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