Join Carrie Dils for an in-depth discussion in this video Create front-page.php, part of WordPress and Genesis: Building Child Themes from Scratch.
- Let's take a look at front-page.php.…While it's not a required template file for a theme,…most custom themes include it.…Front-page.php shows your latest post,…or a static post, if that's what you have set…under Settings, Reading in your WordPress Admin.…The name for this template file comes from the…WordPress Template Hierarchy, and that determines…the order in which template files get loaded.…Let's take a look at the hierarchy here.…
As a quick note, some older Genesis themes…alternatively named this file home.php.…Because of the way the WordPress Template Hierarchy…is set up, front-page.php is really the proper file name…for your Homepage.…Home.php, on the other hand, is intended…as a blog page index.…Bill Erickson has a great article on why…this distinction matters.…Let's go ahead and create our file called front-page.php.…
Since it's a php file, of course the first thing…we want to do is create that opening php tag.…A quick thing to note: you don't need to have…the corresponding closing tag at the end of a page.…
- Why build a theme from scratch?
- Creating a theme folder
- Creating the CSS and PHP files
- Adding a theme setup function
- Adding features and functionality to your child theme
- Styling the theme
- Adding content to widgets
- Making the theme responsive with media queries
Skill Level Intermediate
1. Building a Theme
2. Setting Up Your Basic Theme Structure
3. Generating Site Features and Functionality
4. Building Out Your CSS
5. Going Further with CSS
6. Putting It All Together
Prepare your theme2m 31s
- 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.