Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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.

    #947953

    Hey Henk-Jan,

    Please refer to this link to remove framework debug info.

    Best regards,
    Vinay

    #958989

    Hello,

    I tried the following code, debug information is still in the source.

    if(!function_exists(‘avia_debugging_info’)){
    function avia_debugging_info() {
    //
    }
    }

    #959376

    Hi 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,
    Victoria

    #959590

    I 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.

    #960174

    Hi 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,
    Nikko

    #964799

    ich 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.

    #964856

    try 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() {
        // 
      }
    }
    #966398

    Thank you @Guenni007 that solved my problem.

    #966570

    Hi mischa13,

    Glad that’s fixed on your end :)


    @Guenni007
    : Thanks for helping out :)

    Best regards,
    Nikko

    #1068547

    This 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??

    #1068556

    Hi Vinay – Your link returns a Error 404 – page not found

    #1068687

    Hi 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,
    Nikko

    #1069136

    Thank 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.

    #1069480

    Hi 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,
    Nikko

    #1070114

    Thank you Nikko! My problem is solved, appreciate your time and input!!

    Best,

    Joe

    #1070184

    Hi Joe,

    Glad that we are able to help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.