Join Carrie Dils for an in-depth discussion in this video Working with functions, part of WordPress Themes: Customizing Themes with Genesis.
- [Instructor] If the style sheet is the beautiful face…of your web site, think of functions.php as a heart.…If you've read many WordPress or Genesis…tutorials online, you may have gotten the instruction…to put some bit of code into functions.php.…Why is that?…Well, the function file behaves a little bit like…a WordPress plugin, adding features and functionality…to your site.…We can use it to call existing WordPress functions…or even create our own.…Like the stylesheet, it's fine to edit this file directly,…but you might wonder where's the best place…to put your customizations?…At the top, at the bottom?…Well, let's take a look.…
So we're in the functions.php file…of the Genesis sample theme.…After a little documentation at the top of the file,…the first thing we do is initialize the Genesis framework…here on line 14, or, as the comment says, start the engine.…After that, we're doing various theme setup functions,…like including some theme defaults, adding our localization,…adding in some helper functions,…those customizer files that we looked at earlier, etc.…
Released
7/28/2017- 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
Share this video
Embed this video
Video: Working with functions