[Support request] Can not move functions.php to my child theme after update to Version 1.3.48

Home Forums Support Can not move functions.php to my child theme after update to Version 1.3.48

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #332510
    Alexander

    I can not move the functions.php to my child theme any more, even if I simply copy the original functions.php – without changes – from the update 1.3.48 to my child theme.

    I get the following error: Fatal error: Cannot redeclare generate_setup_woocommerce() (previously declared in C:\xampp\htdocs\dgn1\wp-content\themes\generatepress\inc\plugin-compat.php:13) in C:\xampp\htdocs\dgn1\wp-content\themes\generatepress\inc\plugin-compat.php on line 27

    I do not use WooCommerce at all but i need to have some changes in my functions.php.

    What can I do?

    GeneratePress 1.3.48
    #332516
    Tom
    Lead Developer
    Lead Developer

    Your child theme functions.php should be empty by default. It shouldn’t contain anything from the parent theme functions.php file.

    You can find a good starter child theme here:https://docs.generatepress.com/article/using-child-theme/

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