Fatal Error when Previewing Child Theme
-
I am trying to create a twenty-ten child theme before I do this update because I never made a child theme after last update and have made many simple edits since then directly on the twenty-ten theme and I don’t have a list of what I changed.
I went into file manager and created the folder for the child in the right spot and what I did was just copied the exact style.css file from the twenty-ten folder and added it to the child folder. Then I edited the header of the style.css in the header to say:
/* Theme Name: Twenty Ten Child Description: Child theme for the Twenty Ten theme Template: twentyten Version: 0.1.0 */ /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.htmlI also did exact copies of the functions.php and the header.php becasue I think I may have made changes to those as well and put them into the child folder.
When I went into the dashboard and tried to preview my child template it gave me this error: “Fatal error: Cannot redeclare twentyten_page_menu_args() (previously declared in /home8/livelow7/public_html/wp-content/themes/twentyten-child/functions.php:221) in /home8/livelow7/public_html/wp-content/themes/twentyten/functions.php on line 224”
What did I do wrong and how can I fix it, thank you.
The topic ‘Fatal Error when Previewing Child Theme’ is closed to new replies.