Join Carrie Dils for an in-depth discussion in this video Solution 1, part of WordPress Themes: Customizing Themes with Genesis.
(electronic sound)…- [Instructor] Alright, so, your mission was to come to…the front page and remove the loop, and then add in…your custom loop, showing only posts from a single category.…Now, to remove the default Genesis loop, we'd say…remove action, and then that hook, genesis_loop, and then…the name of that callback function, genesis_do_loop.…Now, if I go back to my site at this point,…I'm expecting and hoping to see that there is no loop,…there's nothing happening.…
So if I refresh...…Hmm.…I see that it's just business as usual here,…so what's going on?…Well, if you remember from previously in this chapter,…we added a custom loop to functions.php.…So, come down here, to line 199, and we've got this…remove action removing the loop, but then we've come…back here and said we want to add action,…and then we added in this custom loop.…So, when we did the remove action, we removed the loop…on the entire site, because functions.php…affects the entire site.…
And then, when we came back in and did this add action…with our custom loop, we're also affecting our entire site.…
- Setting the stage for your customization
- Selecting a child theme to customize
- The core of the Genesis framework
- Child theme template structure
- Action hooks and filters in WordPress and Genesis
- Editing theme files
- Editing the style sheet
- Working with functions
- Adding a custom header image
- Registering a widget area
Skill Level Beginner
1. Setting the Stage for Your Customization
2. Explaining Genesis and WordPress
3. Editing Theme Files
4. Working with the Loop
Next steps1m 23s
- 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.