• Hi – there’s a problem with my functions.php file. If I remove it from my twentythirteen-child folder, I get a messed up version of my website. If I add it, I get the following error message:

    Fatal error: Cannot redeclare twentythirteen_setup() (previously declared in /mnt/vol4/home/a/n/andrew6/public_html/wp-content/themes/twentythirteen-child/functions.php:73) in /mnt/vol4/home/a/n/andrew6/public_html/wp-content/themes/twentythirteen/functions.php on line 110

    All I have on line 110 is a parenthesis.

    I would appreciate any help – many thanks
    Emma

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you copy the parent’s function.php file into the child theme? If so, that’s incorrect. All child themes start with an empty functions.php file which is only populated by new or customised functions.

    Thread Starter efovargue

    (@efovargue)

    Hi – thanks for getting back to me. I did copy the twentythirteen folder’s ‘function.php’ file into the child folder. If I remove it, the website it messed up. Do I need to strip code out of the functions.php file?

    Emma

    Yes – the function.php file should be empty. I assume you did create this child theme in the correct manner by following the instructions in child theme, yes?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘functions.php problem’ is closed to new replies.