From the course: WordPress: Customizing Themes with Genesis
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Working with functions.php
From the course: WordPress: Customizing Themes with Genesis
Working with functions.php
- [Instructor] If the style sheet is the beautiful face of your website, think of functions.php as the 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 functions 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 Genesis functions or even create our own. So, like the style sheet, it's fine to edit this file directly, but you might wonder where's the best place to put your customizations. At the top, the bottom, somewhere in between. Well, let's take a look. So here we are in the functions.php file of the Genesis Sample Theme. After a little documentation at the top here, the first thing we do is initialize the Genesis Framework or, as the comment says, start the engine. After that, we're doing…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.