Join Morten Rand-Hendriksen for an in-depth discussion in this video Add a custom image size, part of WordPress: Building Progressive Themes with WP Rig.
- [Instructor] Now that our component works, … and we have our Java script enqueued, … we can start customizing the functionality of … this particular component to make … it work exactly the way we want to. … In between the previous movie on this one, I've added some … small things to a couple of files so in component.php, … if you scroll all the way to the bottom, you'll see I've … extended display_related_posts to output … not only the headline but also this aside … with a class related-posts and alignfull, … and inside that aside we have a div … with the class related-spinner. … So this creates the container that the related post … will sit in, and then we have a spinner that … will be displayed for as long as … the REST process is running, … until we get the result, and then the spinner goes away. … related.js also has some slight modifications. … I've built out the entire function now, so … looking at the script you'll see … it's a lot longer than it used to be. … Just for reference, all the logic behind this …
- 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.