-
AuthorPosts
-
April 27, 2018 at 11:00 am #947821
Hello can you tell me how to disable the debug information. in version 4.3
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);
}Works no longer in this version.
Can the debug information by default not being turned off? looks me not neccessary.April 27, 2018 at 2:10 pm #947953May 19, 2018 at 9:47 am #958989Hello,
I tried the following code, debug information is still in the source.
if(!function_exists(‘avia_debugging_info’)){
function avia_debugging_info() {
//
}
}May 20, 2018 at 10:04 am #959376Hi Henk-Jan,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 21, 2018 at 7:56 am #959590I tried this as well and had no luck, because this appears not to work properly when using a child theme.
Once I applied it to the parent enfold theme, it did work. Though it’s not at exactly ideal to have to edit those theme files.May 22, 2018 at 8:10 am #960174Hi J. B.,
I tested the code on my End using a child theme and Enfold 4.3.2 and it works fine.
Can you create a new thread and give us admin access so we can check it.
Just post the details in private content so it’s only visible to the thread creator and the moderators.Best regards,
NikkoMay 31, 2018 at 2:58 pm #964799ich habe das selbe Problem.
Ich habe:
add_action( ‘init’, ‘avia_remove_debug’);
remove_action(‘wp_head’,’avia_debugging_info’,1000);
remove_action(‘admin_print_scripts’,’avia_debugging_info’,1000);
remove_action(‘wp_head’,’avia_debugging_info’,1000);
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);
}
alles versucht aber nichts hat funktioniert.May 31, 2018 at 5:23 pm #964856try this in your functions.php of your child theme with copy paste – maybe you got some quotationmarks faults etc.
if(!function_exists('avia_debugging_info')){ function avia_debugging_info() { // } }
June 4, 2018 at 9:52 am #966398Thank you @Guenni007 that solved my problem.
June 4, 2018 at 3:50 pm #966570Hi mischa13,
Glad that’s fixed on your end :)
@Guenni007: Thanks for helping out :)Best regards,
NikkoFebruary 18, 2019 at 7:24 pm #1068547This is what I have in the view page source:
<!–
Debugging Info for Theme support:Theme: Enfold
Version: 4.4.1
Installed: enfold
AviaFramework Version: 4.7
AviaBuilder Version: 0.9.5
aviaElementManager Version: 1.0.1
ML:64-PU:15-PLA:22
WP:5.0.3
Compress: CSS:all theme files – JS:all theme files
Updates: disabled
PLAu:20
–>I have tried the above code in the functions file but not luck – BTW I am not using a child theme and have updates turned off so if I get a fix no updates will affect this – anybody??
February 18, 2019 at 7:34 pm #1068556Hi Vinay – Your link returns a Error 404 – page not found
February 19, 2019 at 1:33 am #1068687Hi JoeRo,
Try adding this php code at the bottom of your child theme’s functions.php as suggested by Guenni007:
if(!function_exists('avia_debugging_info')){ function avia_debugging_info() { // } }
Best regards,
NikkoFebruary 19, 2019 at 10:29 pm #1069136Thank you Nikko – I am not using a child theme see my last comment above – However, I did try this again to the functions.php file and no luck.
February 20, 2019 at 2:52 pm #1069480Hi JoeRo,
If you’re not using a child theme, do this instead:
1. Modify function-set-avia-frontend.php located in wp-content > themes > enfold > framework > php folder.
2. Find this code (line 1443-1444):add_action('wp_head','avia_debugging_info',9999999); add_action('admin_print_scripts','avia_debugging_info',9999999);
3. Replace it with:
// add_action('wp_head','avia_debugging_info',9999999); // add_action('admin_print_scripts','avia_debugging_info',9999999);
4. Save
Just a reminder though since the modification is done in the Enfold (parent) theme, you’ll need to do this again once you update Enfold.Best regards,
NikkoFebruary 21, 2019 at 9:57 pm #1070114Thank you Nikko! My problem is solved, appreciate your time and input!!
Best,
Joe
February 22, 2019 at 3:54 am #1070184Hi Joe,
Glad that we are able to help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.