Join Morten Rand-Hendriksen for an in-depth discussion in this video Templates and file structure, part of WordPress: Building Progressive Themes with WP Rig.
- [Speaker] The templates in WP Rig work pretty much … the same way WordPress templates have always worked. … The only difference is they're more modular … than they have been previously. … Out of the box, WP Rig uses index.php … as the single template file for all views, … meaning whether you have a post or a page … or an index page or an archive, … it's all powered by index.php. … This is to make the starter theme as small as possible, … and it gives you the option as the developer … to choose how you want to extend it, … rather than having to work with existing files. … Looking at the actual index.php template file, … you'll see this is very much like any other … WordPress template file. … Off the top, we call get header, … which gives us header.php. … Then we call in the style sheet for the content style … so that it appears right above the actual content … it'll style. … Then we have a main and we do the post loop … where we check to see are there any posts available? … If there are posts available, …
- 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
- Adding advanced features
- Translating a theme
Skill Level Beginner
WP Rig: A primer2m 5s
1. Configure a Development Environment for WP Rig
2. Install and Configure WP Rig
4. PHP and WordPress Templates
6. Extending WP Rig: A Practical Example
7. Going Further with WP Rig
- 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.