Join Morten Rand-Hendriksen for an in-depth discussion in this video Optional template files, part of WordPress: Building Progressive Themes with WP Rig.
- [Instructor] WordPress uses what's known as … the template hierarchy … to figure out which template file to use … when displaying a specific type of content. … This graphic comes from … the WordPress template hierarchy page … in the WordPress developer handbook, … and it shows you the entire flowchart … of the process of selecting which template file to use. … I'm showing you this because, at the very end, … on the right hand side here, … you can see index.php. … This is the fallback file for all template files, … so if no other template files exist, … WordPress automatically falls back to index.php … as the main template file. … That's what WPRIG does out of the box. … It provides index.php … as the only template file in use. … However, as you've seen previously in the course, … WPRIG also ships with optional template files … directly from the template hierarchy, … you can drag and drop into your theme … and they automatically take effect. … Those template files sit under the folder called "optional". …
Author
Released
7/18/2019- Setting up a WordPress theme development environment
- Installing WP Rig
- Building, activating, and testing a new progressive theme
- Editing CSS
- Using web fonts
- Editing existing templates
- Editing PHP and JavaScript code
- Adding advanced features
- Translating a theme
Skill Level Beginner
Duration
Views
Related Courses
-
WordPress: Contact Forms
with Patrick Rauland1h 37m Beginner -
WordPress: Developing Secure Sites
with Jeff Starr2h 34m Intermediate -
WordPress: Plugin Development
with Jeff Starr4h 53m Intermediate
-
Introduction
-
WP Rig: A primer2m 5s
-
1. Configure a Development Environment for WP Rig
-
2. Install and Configure WP Rig
-
Get WP Rig1m 41s
-
How WP Rig works2m 15s
-
First-time configuration2m 42s
-
Configure Browersync2m 33s
-
Run the WP Rig installer2m 52s
-
-
3. CSS
-
CSS in WP Rig2m 51s
-
Edit CSS4m 34s
-
Google Fonts4m 37s
-
Load modular style sheets3m 29s
-
-
4. PHP and WordPress Templates
-
PHP in WP Rig1m 4s
-
Templates and file structure4m 21s
-
Functions in WP Rig5m 45s
-
Example: Add footer widgets6m 27s
-
-
5. JavaScript
-
JavaScript in WP Rig1m 5s
-
Advanced JavaScript loading4m 44s
-
Debug JavaScript2m 56s
-
-
6. Extending WP Rig: A Practical Example
-
The role of PHP modules1m 36s
-
Build a basic component7m 38s
-
Enqueue JavaScript files8m 18s
-
Add a custom image size6m 35s
-
Various demos3m 9s
-
-
7. Going Further with WP Rig
-
Advanced build features2m 7s
-
Contribute to WP Rig1m 2s
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Optional template files