Title: Child theme cannot redeclare error
Last modified: August 21, 2016

---

# Child theme cannot redeclare error

 *  [telston](https://wordpress.org/support/users/telston/)
 * (@telston)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/child-theme-cannot-redeclare-error/)
 * I am getting a ” Cannot redeclare twentythirteen_setup()… /wordpress/wp-content/
   themes/twentythirteen/functions.php on line 104″ error in creating a child theme
   of twentythirteen. The line on 105 (not 104) is add_action( ‘after_setup_theme’,‘
   twentythirteen_setup’ ); Do I just remove that?
 * Thank you

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

 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/child-theme-cannot-redeclare-error/#post-4001895)
 * What’s the content of your child theme `functions.php` ?
 * Is it the exact copy of parent’s ? (If so, that’s wrong, see this link below)
   
   [http://codex.wordpress.org/Child_Themes#Using_functions.php](http://codex.wordpress.org/Child_Themes#Using_functions.php)
 *  [thescarletfire](https://wordpress.org/support/users/thescarletfire/)
 * (@thescarletfire)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/child-theme-cannot-redeclare-error/#post-4001954)
 * Make sure your child functions.php is not a 100% copy of the parent’s functions
   file.

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

The topic ‘Child theme cannot redeclare error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentythirteen/4.6/screenshot.
   png)
 * Twenty Thirteen
 * [Support Threads](https://wordpress.org/support/theme/twentythirteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentythirteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentythirteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentythirteen/reviews/)

## Tags

 * [cannot redeclare](https://wordpress.org/support/topic-tag/cannot-redeclare/)
 * [child](https://wordpress.org/support/topic-tag/child/)

 * 2 replies
 * 3 participants
 * Last reply from: [thescarletfire](https://wordpress.org/support/users/thescarletfire/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/child-theme-cannot-redeclare-error/#post-4001954)
 * Status: not resolved