child theme – fatal error, seemed to be fine before
-
Just created a child theme, as I had made some modifications to a theme that I didn’t want to lose. I copied all the themes files into a different directory and reinstalled the theme. now I get this error –
Fatal error: Cannot redeclare register_scripts() (previously declared in /homepages/23/d236124545/htdocs/wp-content/themes/childbelle/functions.php:16) in /homepages/23/d236124545/htdocs/wp-content/themes/belle/functions.php on line 27can’t think what might be causing it, especially as I replaced the functions.php file only yesterday
Edit: Moved all the files back into original directory (including modified child theme style.css file, and its all working again.
What is going on? and if the theme is updated will i still lose my modifications?
- The topic ‘child theme – fatal error, seemed to be fine before’ is closed to new replies.