I’ve created a child theme already and removed just about every instance of the theme name in my source code. My issue is, however, that I have debugging mode enabled so I can wrap geo-targeting shortcodes around certain areas in my Advanced Layout Builder. This is causing the source code to show the theme name for “debugging.”
Is there any way I can remove this aside having to toggle debugging on and off through CSS?
<!--
Debugging Info for Theme support:
Theme: Enfold
Version: 3.1.1
Installed: xxxxxxxxx
AviaFramework Version: 2.1
AviaBuilder Version: 0.8
- - - - - - - - - - -
ChildTheme: xxxxxxxxx Child
ChildTheme Version: 2015.03.18
ChildTheme Installed: xxxxxxxxx
ML:128-PU:68-PLA:24
WP:4.1.1
Updates: enabled
-->
Hey dmoravec!
Please add following code to Functions.php file of your child theme in Appearance > Editor
function avia_remove_debug() {
remove_action('wp_head','avia_debugging_info',1000);
}
add_action( 'init', 'avia_remove_debug');
Cheers!
Yigit
Worked and no side effects!
Thanks!