Tagged: ,

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

    Hi,

    When we pace a functions.php in the child theme the websites breaks (goes blank).
    Any idea what might be causing this?

    #725401

    Hey hotspot!

    There might be an error in your code. Can you please post FTP logins and WP admin logins here privately so we can look into it?

    Best regards,
    Yigit

    #725415

    Hi Yigit,

    We copied the functions.php from the child theme you offer as a download. This ’empty’ file does not break the website. But if we place code in it, it does.

    We copied this code in it and the website breaks:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    	return "debug";
    }
    #725423

    Hi!

    That was because you had the same code in functions.php file of your parent theme as well. I removed from parent theme and added to child theme.
    By the way, you have installed Enfold parent theme twice. One is the older version. Please delete it.

    Regards,
    Yigit

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