In this video, learn how to modify an existing template.
- You can copy over any existing file easy enough … but you can also create new templates that don't exist … in your parent theme. … Let's make a new template just for our recipes. … We'll go to my code editor, and if my theme had a template … for categories, I'd see it right here. … But that doesn't exist. … So instead, I'm going to start with archive.php … and if you go back to the template hierarchy … and click in, we can see if category.php doesn't exist … then use archive.php. … So this is the closest thing to category php. … I'll copy archive.php. … I'll paste it into my theme. … But, I'm going to rename this. … So I'm going to call it … category … and if I saved it just like this, it would apply to all … of our categories, but I only want it … to apply to a specific category. … In this case, recipes. … And I know this, because if I go back … to the template hierarchy, we can see right here … category dash dollar sign slug. … So that is category dash the name of the category dot php. …
- Setting up your development environment and editor
- Picking a parent theme
- Creating a child theme
- Including style sheets
- Creating and modifying styles
- Modifying functions
- Hooking functions
- Creating and modifying template files
- Adding menus and functionality
- Migrating theme files to a live WordPress site
Skill Level Intermediate
Using the exercise files1m 13s
1. Building on a Solid Foundation
2. Creating a Child Theme
3. Child Themes and CSS
4. Working with Function Files
5. Working with Template Files
6. Add New Functionality
7. Wrapping Up
Next steps1m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.