Before attempting this tutorial, you should have already read and completed the “ClassiPress Child Theme Tutorial Part 1“. Assuming you have done this you will already have a folder for your child theme which leaves us right where we left off.
What we will Cover in Part 2
- Creating the functions.php file.
- Overwriting an existing function (the prices function in this tutorial).
- Creating your own new function in the function file.
- Use the child theme to modify the index-directory.php file so that our homepage is modded.
- Build a new dashboard template to show confirmation messages and activate it.
Step 1: Creating the functions.php file
Navigate to the child theme folder you previously created. Now we need to create a new file in it. You can do this a variety of ways, but we are going to use a technique that is the most “universal”.
Yes, its finally here. I know you all have been anxiously awaiting some guidance on creating a child theme. This first part of the tutorial will cover the basics. I’m going to try to assume you know absolutely nothing about WordPress or child themes.
It will however, require that you understand some simple things like how to FTP to your server, browse the file structure, and upload/download files to your WordPress installation.
Step 1: Creating the Folder and Stylesheet Files
What I have to show you here is that I’ve downloaded the most recent version of WordPress, at the time of writing this article. Then I’ve placed the folder on my desktop and navigated to the “themes” directory. I’ve also already copied my “ClassiPress” theme folder that I purchased into this folder.