Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #955368

    I don´t know why, but since the update to 4.3 this https://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/ is not working any more to enable the Avia Layout Builder Debug Mode. Please help!

    • This topic was modified 6 years, 7 months ago by teamazing.
    #955623

    Hey Paul,

    We got the new docs now, it moved. Please find it here

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1440008

    Just a question: why don’t you offer the debig mode by default? I guess it’s mainly used for copying pages, also cross installations, and it’s very useful. Why hide it?

    #1440011

    Hi Victoria,

    unfortunately the mentioned code changes to enable the debug mode do not work anymore in Enfold 5.7
    I have tried to include the following code from the linked page into functions.php

    ”’
    Debug mode
    If you would like to view the shortcode of a page or elements of the page. The Debug mode allows you to view the shortcode for the page and it’s elements. You can copy and paste the shortcode to re-produce the page and elements or something more advanced like nesting elements.

    To do this, you need to enable the debug field for the Advanced Layout Builder. Adding the following to your child theme functions.php will do that:

    //set builder mode to debug
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }
    You should now see a new field under the Advanced Layout Builder with the live output of the elements as you add them using the drag and drop interface. Just be careful of editing things in that field as there are no checks or automatic corrections for missing punctuation or code.

    If you are not using a child theme you need to add the above function after this line in the theme functions.php:

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;
    DEVELOPER OPTIONS
    ”’

    Unfortunately the mentioned code snippet where to insert the code does not exist like that anymore, and inserting it at a different part does not show it in the user interface.

    What can I do?
    Best regards,
    Tobias

    #1440013

    EDIT:
    Actually I found the part to insert the snippet after, it now has a different format:
    #########################
    if( isset( $avia_config[‘use_child_theme_functions_only’] ) )
    {
    return;
    }

    #########################

    Inserting this snippet at the beginning did not make the debug mode visible in the user interface, but I found the solution:
    COPYING the code from the website used different characters for ‘ and ”
    So I manually adapted them, now it works.

    //set builder mode to debug
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    #1440020

    Hi,
    Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold 4.3 How to enable Avia Layout Builder Debug Mode’ is closed to new replies.