Now that the code run you will need to go to the parent theme, then find the header.php.

Copy every code.

Remember the small line of code that created the header.php file in the child theme.

You will need to delete it now as we won't need it anymore.

Click on Editor then select the parent theme, in my case the twenty sixteen theme.


Copy the entire code of the header.php of the parent theme.

It will be used to paste it on header.php file of the child theme.

Paste the code on the text editor. Do not used notepad as it tend to display all the codes in a few line. By using the text editor your will have a proper format to see the code.


Then head to you website root folder for the child theme and see the header.php file.

Right click on the header.php file of the child theme, then click on view/edit.

It will open in notepad, then again copy all the code from the text editor to the empty notepad.

Close and save to continue.

Remember to delete the last line of code in the functions.php file.

Now you have a full functioning child theme with header.php file.



Join the Discussion
Write something…
Recent messages
LouisaB Premium
Need this training because, I am totally lost.
Anxious to learn more.
Reply
BlSt Premium
I have a dummy question to ask. What is a Child Theme used for?
Reply
CoachGom777 Premium
An innovation of an older theme.
Reply
BobBarr Premium
One use is to allow you to modify the characteristics of a theme and preserve those modifications when a theme update occurs.

Theme updates overwrite all of the files that comprise the theme. If you were to edit your theme's files directly (to change a font color or size for example), those changes would need to be manually edited back into the files every time the theme got an update.

A child theme uses all of the characteristics of its parent theme except for those that you've chosen to override. Since a theme update doesn't overwrite your child theme's files, those overrides are applied to the updated parent theme without your needing to reenter them manually.
Reply
BlSt Premium
Ok, I get it.

Recently I had a theme update in WordPress, AND ALL MY HARD WORK MODIFICATIONS WERE WRITTEN OFF. I had to do all the manual editing again

This is really cool. Thanks a lot for making this very clear.
Reply
sheikave Premium
It happened to me and the new update do not allow direct file modification. That is why i decided to create a train to do it.
Reply
sheikave Premium
A custom mod of the normal theme that you use normally.
Reply
CoachGom777 Premium
Good job for producing this training. I learned two things: First, for creating a child theme; Second, how to really use FTP with WA. I used FTP in the past, but with other hosts. So, thank you so much.
Reply
Top