• I have been creating a child theme to twenty twelve on a localhost on my pc. Has been working okay until I got confused about the altering of the style.css and decided to put a copy of all the files from the parent into the child. Then I Lost the connection and this is the message i have ( Fatal error: Cannot redeclare twentytwelve_setup() (previously declared in C:\wamp\www\wordpress2\wp-content\themes\twentytwelve-child\functions.php:44) in C:\wamp\www\wordpress2\wp-content\themes\twentytwelve\functions.php on line 77)
    not sure what to do. thanks for any help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Your theme “twentytwelve-child” seems to be the issue.

    Take look at this theme’s functions.php, around line 44

    Another person who has copied the whole parent file set into the child directory.
    You want to delete most of these files, especially the functions.php.
    The whole point of child themes is that you inherit the capabilities of the parent theme, and only immerse yourself into customising what you need to be different.
    The specific problem you have is that you have TWO functions called “twentytwelve_setup()”. When you need your own setup function, be sure to give it a different name, it will be setting up your child theme, not twentytwelve.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fatal error message on locahost when I was trying to sort out child theme’ is closed to new replies.