Tagged: debugging
-
AuthorPosts
-
January 17, 2019 at 2:11 pm #1054992
I have search all related posts and try it, including:
if(!function_exists(‘avia_debugging_info’)){
function avia_debugging_info() {
//
}
}Non can remove the debugging info:
Debugging Info for Theme support:
Theme: Enfold
Version: 4.5
Installed: enfold
AviaFramework Version: 4.7
AviaBuilder Version: 0.9.5
aviaElementManager Version: 1.0.1
ML:256-PU:48-PLA:4
WP:4.9.9
Compress: CSS:all theme files – JS:all theme files
Updates: disabled
PLAu:4Please tell me what to do..
January 17, 2019 at 6:19 pm #1055102Hey yundian,
Please try adding this again at the very end of your themes/child theme’s functions.php and it should work for you. file:
// Remove debug if(!function_exists('avia_debugging_info')){ function avia_debugging_info() { // } } // End function
For more information about adding custom script please check this link.
Best regards,
VinayJanuary 18, 2019 at 4:49 am #1055339Hello,
I add the code both in functions.php and functions-enfold.php, but nothing happened…
The info are still there…
Just use enfold theme without child themes
January 18, 2019 at 4:59 am #1055344Hi,
Can you please include a admin login in the private content area so we can be of more assistance.Best regards,
MikeJanuary 18, 2019 at 10:25 am #1055383Hi,
It is not convinient to give you my main website
I can give you my another website which is for just testing, have the same problem
please find the problem and tell methanks
January 18, 2019 at 2:40 pm #1055458Hi,
Thanks for the login, I removed the function from “functions-enfold.php” and moved the code in “functions.php” to right after:if(isset($avia_config['use_child_theme_functions_only'])) return;
It is now working correctly, please note that if you ever want to use the Avia Layout Builder Debugger code, it will also go right after the “use_child_theme_functions_only” statement above.Best regards,
MikeMarch 19, 2019 at 11:29 pm #1080570Hi,
I had the issue too that on one specific Enfold installation the Debugging info was still showing, but after adding the above from Vinay mentioned modification to the child’s theme functions.php it finally was removed.
Is the following solution now deprecated, or what is going on there?
function avia_remove_debug() { remove_action('wp_head','avia_debugging_info',1000); } add_action( 'init', 'avia_remove_debug');
Thanks and best regards
eCMarch 21, 2019 at 1:54 am #1081115Hi,
To remove the debugging info please use this code in your functions.php:if(!function_exists('avia_debugging_info')){ function avia_debugging_info() { } }
If you are not using a child theme then it will need to go on about line 18, right after this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
I just tested with v4.5.5 and it still works.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.