Join Morten Rand-Hendriksen for an in-depth discussion in this video Functions in WP Rig, part of WordPress: Building Progressive Themes with WP Rig.
- [Instructor] All WordPress themes must have a file … called functions.php. … And traditionally this is the file that contained … all the set up of the theme and all the customizations. … However, as WordPress has evolved, … more and more of that functionality has moved … out of funcitons.php and into other files. … And in WP rig, we've taken that to the extreme … by removing all functionality from functions.php … and just letting this file control the function … of WP rig itself so that all the modularity works. … That means, as you create new functions … for your own custom themes with WP rig, … you never touch functions.php itself. … This file is no longer where you place any functionality. … All custom functionality lives inside the inc folder … under different php modules. … This also introduces a new way of doing things … where custom functions are concerned. … And the best way of explaining how it works … is to show you an example. … If we go to sidebar.php, … the template file that generates the sidebar, …
- 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.