Join Carrie Dils for an in-depth discussion in this video Create functions.php, part of WordPress and Genesis: Building Child Themes from Scratch.
- Let's start with creating an empty file…called functions.php in the root…of the theme folder.…Now, since this is a php file,…we need to go ahead and include…an opening php tag.…There are a lot of things that happen…in this file.…This file is used to change any default behaviors…of the Genesis framework or WordPress itself.…It acts as a sort of plugin within your theme…that enables you to use the hooks and filters…of WordPress and Genesis,…add theme support for various features…or to find functions that you want to execute…across multiple template files.…
You can check out the WordPress codex…for a full explanation of all this file does.…The first thing we need to do is provide…some basic documentation at the top…of this file in the form of a comment block…or a DocBlock.…This is similar to what we just did…for our style.css file.…Once again, the WordPress codex provides…some good direction.…Now, this particular DocBlock is skewed…a bit towards WordPress core files.…For instance, it doesn't include a reference…to an author or a copyright,…
- 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 Advanced
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.