• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How does the Genesis Parent Load?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How does the Genesis Parent Load?

This topic is: not resolved
  • This topic has 6 replies, 3 voices, and was last updated 11 years, 6 months ago by brettatkin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 13, 2014 at 2:12 pm #109619
    brettatkin
    Member

    How does the Genesis parent theme load? When I look at the index.php page for theme, all I see is a call to the main genesis function 'genesis();' There isn't a call to the functions.php file which calls the init.php file.

    June 14, 2014 at 4:14 am #109686
    nunotmp
    Member

    The genesis() function can be found by navigating to genesis>lib>framework.php


    Genesis Child Themes – Follow Me

    June 14, 2014 at 6:24 am #109701
    brettatkin
    Member

    Yes, but how does the index.php know where to look to find that? The only code on the index.php page is:

    genesis();

    Thanks

    June 14, 2014 at 12:23 pm #109752
    nunotmp
    Member

    This is the reason you have to "start the engine". When you start the engine you call in the init.php which requres the framework.php files which has the genesis() function. If you do not call the init.php file you will not have access to this function.


    Genesis Child Themes – Follow Me

    June 14, 2014 at 12:30 pm #109755
    brettatkin
    Member

    I understand that, but how/where is that file called in the theme's index.php?

    June 14, 2014 at 3:44 pm #109788
    Summer
    Member

    The init call is not in index.php, it's in functions.php, at the very top:

    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );

    That's what gets the framework engine connected to the child theme. All Genesis child themes need to have this call first, else they wouldn't be able to use Genesis functions and features.

    In your themes folder, you'd have a folder called "genesis" which is the framework, and then your child theme, for example "enterprise-pro". That's how the "start the engine" call finds Genesis and lets the child theme do its magic.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    June 16, 2014 at 6:18 am #109965
    brettatkin
    Member

    I was finally able to find an answer - I wasn't really asking the question correctly. I found this post on Stack Exchange.

    http://wordpress.stackexchange.com/questions/71406/is-there-a-flowchart-for-wordpress-loading-sequence

    Which leads to this post:

    http://theme.fm/2011/09/wordpress-internals-how-wordpress-boots-up-part-2-2437/

    For item 24, he says WP autoloads the primary and child theme's functions.php file. This is what I was missing. WP triggers the loading of the functions.php file which enables everything else to work.

    Thanks for sticking with me on this.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble