Title: Child theme PHP file query&#8230;
Last modified: August 20, 2016

---

# Child theme PHP file query…

 *  [benisjamin](https://wordpress.org/support/users/benisjamin/)
 * (@benisjamin)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/child-theme-php-file-query/)
 * Hi folks,
 * Ive realised I may have made a booboo, in that I have added my own HTML to a 
   couple of the parent themes PHP files. Do I need to duplicate these files and
   place them in my child theme directory, then remove the original HTML from the
   parent themes PHP files, because as and when new updates come along the parent
   themes files are wiped and reset with effectively default code.
    I d put my domain
   on but its abit pointless as you cannot view my PHP code.
 * If anyone can clear this up for me Id be most appreciative.
 * regards
 * Benisjamin

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/child-theme-php-file-query/#post-2301379)
 * > Do I need to duplicate these files and place them in my child theme directory,
   > then remove the original HTML from the parent themes PHP files
 * Yes.

Viewing 1 replies (of 1 total)

The topic ‘Child theme PHP file query…’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/child-theme-php-file-query/#post-2301379)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
