Archived topic
Can not move functions.php to my child theme after update to Version 1.3.48
1 reply · Started by Alexander on June 12, 2017
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?
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/