Title: theme/child
Last modified: August 21, 2016

---

# theme/child

 *  [shards](https://wordpress.org/support/users/shards/)
 * (@shards)
 * [13 years ago](https://wordpress.org/support/topic/themechild/)
 * There’s a lot of info on support pages about using child themes to make edits.
   I’ve set one up with a style-sheet. It’s activated and uses [@import](https://wordpress.org/support/users/import/)
   url(“../twentyeleven/style.css”) to load the parent theme. So far so good. But
   I can’t find any info about how to REMOVE code, rather than to add code.
 * For example, I’ve removed the search form: <?php get_search_form(); ?> from the
   header but had to do that in the parent theme because I couldn’t figure out how
   you do that in the child theme? Is the idea to add php functions and then add
   something to invalidate the function?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years ago](https://wordpress.org/support/topic/themechild/#post-3765537)
 * > how to REMOVE code, rather than to add code
 * with templates, you will need to create copy of the template in the child theme,
   possibly using FTP.
    with styles, you will need to find a way to _**overwrite**_
   the formatting.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years ago](https://wordpress.org/support/topic/themechild/#post-3765538)
 * For any PHP file you want to modify copy it from the theme and paste it into 
   your Child Theme directory (apart from functions.php).
 * Then you can modify that file from within your Child Theme and do what you want
   with it.
 *  Thread Starter [shards](https://wordpress.org/support/users/shards/)
 * (@shards)
 * [13 years ago](https://wordpress.org/support/topic/themechild/#post-3765792)
 * Thanks to you both. I copied a php file (footer) in cpanel from themes/twentyeleven
   to themes/twentyeleven-child and modified it. It worked perfectly. So, I will
   continue to copy php files to child as needed. The functions php file -the reason
   for not copying this would be because it only works within the parent theme perhaps?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years ago](https://wordpress.org/support/topic/themechild/#post-3765793)
 * >  So, I will continue to copy php files to child as needed
 * Yep. See this for the functions.php file [http://codex.wordpress.org/Child_Themes#Using_functions.php](http://codex.wordpress.org/Child_Themes#Using_functions.php)

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

The topic ‘theme/child’ is closed to new replies.

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/themechild/#post-3765793)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
