Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Detecting the Root Page
Lab: Header Components – Developer’s Guide to Customizing Genesis
Video Runtime: 14:26
Throughout the header code, you will find the function genesis_is_root_page()
, which is used to check if the requested page is the root of the website. What does this mean? In this episode, you will explore the different options that trigger is_front_page
and is_home
. You will look at settings HTML and in the database to see the options which trigger either or both of these states.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
Episodes
Total Lab Runtime: 02:16:34
- 1 Lab Introductionfree 06:45
- 2 Genesis Header - Overviewpro 14:35
- 3 Detecting the Root Pagepro 14:26
- 4 Building the Site Title - Part 1pro 08:00
- 5 Building the Site Title - Part 2pro 08:33
- 6 Customizing the Site Titlepro 13:04
- 7 Styling the Site Titlepro 04:29
- 8 Introduction to the Custom Header Featurepro 07:31
- 9 Custom Header Feature in Genesis - Part 1pro 15:14
- 10 Custom Header Feature in Genesis - Part 2pro 10:51
- 11 Building the Site Descriptionpro 12:47
- 12 To Render or Not to Render - Header Right Sidebarpro 11:02
- 13 Building the Header Right Sidebarpro 08:28
- 14 Wrap it Upfree 00:49