Join Carrie Dils for an in-depth discussion in this video Solution: Adding and displaying a widget, part of WordPress Themes: Customizing Themes with Genesis.
- [Narrator] I gave you a pretty tall order…in that last challenge.…Let's go ahead and walk through the solution.…The first thing was to register a new widget area,…called "my-widget".…And I'm going to start by borrowing some code…that we wrote in an earlier lesson,…right here on line 173 of our functions.php file.…I'm just going to copy 174 to 178,…which is the code to register that front page one sidebar.…And by the way, the terms "sidebar" and "widget areas"…are used interchangeably in Wordpress.…
So I'm going to change this ID to "my-widget".…And the name to "my-widget".…And I didn't specify that you'd need to…change the description but you can if you want to.…You get bonus points if you did.…Okay, so with that registered,…if we go back over to our site…and go to our widget area,…right there we can see "My Widget."…So, let's go ahead…and in anticipation of this showing on the site…go ahead and put a little text box in there.…
Okay, but of course this is not displaying anywhere yet…because we haven't told Wordpress to display it.…
- 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.