Lesson 5 – Creating Custom Page Templates in Genesis
Facebook
LinkedIn
Google+
This is the fifth lesson in our Customize Genesis Like a Pro video tutorial course but it’s also the third lesson on how to customize the Genesis Theme using PHP. Here you’ll learn how to create your own custom page templates in Genesis. We begin by laying out the fundamental elements of custom templates to give you a solid understanding of how they are put together and named. Then we show you several ways to customize templates with custom headers, sidebars, widgets and more. To finish, you’ll learn how to create your own custom landing page template.
- Template naming convention
- Header
- Changes
- Genesis
- Location
- Create the file
- Remove the default header
- hook – genesis_header
- function name – genesis_do_header
- Add our own header
- Genesis html
- Our image html
- Home URL
- Stylesheet directory URI
- Escaping URLs when outputting them on a page
- Watch for the trailing slash
- How filters work
- modify existing content
- passes values to the function for modifications
- values must be returned
- create a function
- filter_hook – body_class
- Create the file
- Remove the default header
- Register the sidebar
- Add our own sidebar to the header
- Genesis html
- insert the sidebar
- Add a custom body class
- Create the file
- Remove the default header
- Register the sidebar
- Add our own sidebar to the sidebar
- Genesis html
- insert the sidebar
- filter hook – genesis_site_layout
- function name – __genesis_return_content_sidebar
- Add our custom body class
Save $200 on Membership Now!
Start learning today for as little as
$0.82 PER DAY!
THIS IS A LIMITED TIME OFFER!
Subscription Options
Facebook
LinkedIn
Google+