Tagged: DeBug Mode, Enfold 5.7
-
AuthorPosts
-
May 11, 2018 at 5:20 pm #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, 6 months ago by teamazing.
May 12, 2018 at 8:56 am #955623Hey Paul,
We got the new docs now, it moved. Please find it here
If you need further assistance please let us know.
Best regards,
VictoriaApril 15, 2024 at 11:16 am #1440008Just 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?
April 15, 2024 at 11:25 am #1440011Hi 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,
TobiasApril 15, 2024 at 11:32 am #1440013EDIT:
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”;
}April 15, 2024 at 11:55 am #1440020Hi,
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 -
AuthorPosts
- The topic ‘Enfold 4.3 How to enable Avia Layout Builder Debug Mode’ is closed to new replies.