Old situation: Made alterations directly to the twentytentheme
Desired new situation: a working childtheme, everything working/looking exactly like I made the altered twentytentheme
Since I had edited not only style.css but also header.php and other files in my parent-theme, I copied all of the files in themes/twentyten to my new child themefolder themes/twentytencobi. In style.css in my child theme I changed the header acoording to a tutorial, this style.css seems to wotk fine.
But: when I activate my childtheme, the following error-message appears:
Fatal error: Cannot redeclare twentyten_page_menu_args() (previously declared in /public/sites/www.verzameldewerken.cc/wp-content/themes/twentytencobi/functions.php:214) in /public/sites/www.verzameldewerken.cc/wp-content/themes/twentyten/functions.php on line 217
As I have searched/googled for answers, I now have a slight idea of what is causing this error, but no idea as to how to resolve it in my specific case. So, I was hoping maybe one of you could help me out?
The code in functions.php in both parent- and child-theme are at this point as follows: http://pastebin.com/embed_js.php?i=WyFC7gum
my website is here: http://www.verzameldewerken.cc/ (now back to “old”, directly edited twentytentheme).
- The topic ‘Error in functions.php while making childtheme from edited parent’ is closed to new replies.