Title: How do you add a .php?
Last modified: August 20, 2016

---

# How do you add a .php?

 *  [handle](https://wordpress.org/support/users/handle/)
 * (@handle)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/)
 * Hi, I’m very new to this. I’ve made a child theme to edit a few things. I’ve 
   been told I need to change something in the header.php but the child theme only
   has style.css and rtl.css. How do I make a header.php in the child theme?

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

 *  [ken1990julius](https://wordpress.org/support/users/ken1990julius/)
 * (@ken1990julius)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317638)
 * create a notepad with name header.php( give extension .php). but run to this 
   file you would need web server (like Apache) installed on machine. in fact for
   using WordPress this the requirement. you also need php. so my suggestion is 
   that you install xampp server which comes with php and MySQL.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317639)
 * Copy the header.php file from the parent theme into the child theme and then 
   edit that.
 *  Thread Starter [handle](https://wordpress.org/support/users/handle/)
 * (@handle)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317640)
 * Ken, I don’t really understand any of what you said. What is Apache and how would
   I get it?
 * Samuel, I knew that part, but where do I paste it? Into the style.css?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317651)
 * Don’t worry about what Ken said, I believe he was confused by your original question.
 * But, paste what, exactly? I’m sorry, but I don’t understand your question.
 * You have a child theme. It lives in a folder. You copy the header.php file from
   the parent folder, and make a header.php file in the child theme’s folder. Then
   you edit that.
 *  Thread Starter [handle](https://wordpress.org/support/users/handle/)
 * (@handle)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317652)
 * I mean paste the code that will be changed. So the theme is also on my computer
   not just on the web? I think my main question is that the parent theme has so
   many different .css’s and the child only has two. If I need to change something
   in one of the ones that’s not there in the child, how do I get i there?
 * So from you’re saying, I find the folder on my computer and paste the header.
   php from the parent to the child, and it will then show up in the edit part of
   wordpress?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317656)
 * No. You need to look at the files on your website, via some means other than 
   WordPress. The files for your theme are on your website, in the wp-content/themes/
   folders.
 * > If I need to change something in one of the ones that’s not there in the child,
   > how do I get i there?
 * You make a copy of the file. Just like you make a copy of a file on your own 
   computer, only you’re doing it on your website. You will need to access the files
   on your website.

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

The topic ‘How do you add a .php?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/how-do-you-add-a-php/#post-3317656)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
