Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #177779

    Hi,

    i have added the debug code to the functions.php file within the enfold theme directory.

    
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug() {
        return "debug";
    }
    

    Although ‘Avia Layout Builder’ and ‘custom fields’ are active i dont get displayed the debug field to manually edit the code. What have i done wrong?

    Btw. editing the functions.php seems to be a bad idea because i guess you will overwrite this file with any update. Wouldn’t it be much better to have a functions-custom.php included like the functions-enfold.php?

    Regards

    Michael

    #177792

    Hey Michael!

    You have two options:

    1) Insert the code at the very beginning of functions.php – below the first <?php line.

    2) If you don’t want to modify the functions.php file after every update you can place the code in your child theme functions.php. WordPress will load this file first and then it will load the Enfold parent theme.

    Regards,
    Peter

    #178327

    Hi,

    thank you for your reply. The debug mode works well with the child-theme.

    I already played with that idea before but after setting up a child theme i had to realize it does not save my changes to a style. E.g. i change the background color of style ‘orange’ and save it. Reloading the website reflects the changes as expected. Now i test an other style but after all i go back to ‘orange’. As soon as i click on the ‘orange’ style my custom background is gone.

    It would be helpful to have ‘real’ custom styles.

    Regards

    Michael

    #179438

    Hey!

    We are looking to add the ability to save sets of styles in the future but for now when you make a change its a permanent change after it has been saved. There is no undo or saving the pre-created styles.

    Cheers!
    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Debug’ is closed to new replies.