Title: PHP &amp; Child Themes
Last modified: August 21, 2016

---

# PHP & Child Themes

 *  [apodtoo](https://wordpress.org/support/users/apodtoo/)
 * (@apodtoo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/)
 * Hello,
 * As I understand it, when creating a child theme you must:
    1. Make a new folder such as twentyten-child
    2. Create a new stylesheet with a Theme Name, the name of the Original Template,
       and import your stylesheet URL
 * I have done this, and all my stylesheet edits are showing perfectly. However,
   it is also my understanding that all you must do for edited PHP files to override
   the parent is to copy them to the correct location in the child theme folder (
   except functions.php, which requires new commands), make your edits, and that
   php file within the child theme should override the parent.
 * **Is this ever NOT true, depending on the theme?** Because I have copied over
   header.php and a variety of other PHP files from the parent, placed them in the
   proper location in the child, and still the theme is calling the parent. I have
   read many other threads on this and I am confident that I have done this correctly,
   but I still cannot get the theme to call the child PHP and not the parent.
 * Note: I’m not using twentyten, that was just an example.

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/#post-3902703)
 * Some themes will not work with a child theme.
 *  Thread Starter [apodtoo](https://wordpress.org/support/users/apodtoo/)
 * (@apodtoo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/#post-3902704)
 * You mean, some themes will work with a child theme as far as CSS/stylesheets,
   but not PHP files? Because the child CSS is working fine and perfectly.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/#post-3902706)
 * I don’t know – What theme are you asking about?
 *  Thread Starter [apodtoo](https://wordpress.org/support/users/apodtoo/)
 * (@apodtoo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/#post-3902707)
 * It’s a paid one called BusinessPro made by Cyberchimps. I have successfully made
   edits to the functions.php file in the child theme, but obviously those require
   renaming the commands and calling them accordingly. It stands to reason that,
   like with other themes, getting the template to use the child instead of the 
   parent just requires copying the PHP files to the appropriate location, but that’s
   not working. So what I was really asking was whether this is ever not true – 
   that some themes will support child theming to the extent of CSS only.

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

The topic ‘PHP & Child Themes’ is closed to new replies.

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [apodtoo](https://wordpress.org/support/users/apodtoo/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/php-child-themes/#post-3902707)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
