Tagged: enfold
I got this code from the thread mentioned below.
https://kriesi.at/support/topic/remove-debugging-code-from-page-source/
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);
}
It works great but I was just wondering if I’m going to have to add it to the functions.php file everytime I update the theme or if there is an easier way to apply it.
Hey Chris!
You can use a child theme ( http://kriesi.at/documentation/enfold/using-a-child-theme/ ) and apply the code to functions.php file of your child theme or you can use this plugin to add the code – https://wordpress.org/plugins/functionality/
Regards,
Yigit
Ok. Perfect. Thanks so much Yigit!