• 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

What does the function genesis(); do?

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 › What does the function genesis(); do?

This topic is: not resolved
  • This topic has 3 replies, 3 voices, and was last updated 11 years, 8 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 21, 2014 at 8:06 pm #132454
    psvj
    Member

    Where can I find this function written out?

    November 21, 2014 at 8:17 pm #132455
    anotherusername
    Participant

    I think it is in /genesis/lib/framework.php

    function genesis() {
    get_header();
    do_action( 'genesis_before_content_sidebar_wrap' );
    genesis_markup( array(
    'html5' => '<div %s>',
    'xhtml' => '<div id="content-sidebar-wrap">',
    'context' => 'content-sidebar-wrap',
    ) );
    do_action( 'genesis_before_content' );
    genesis_markup( array(
    'html5' => '<main %s>',
    'xhtml' => '<div id="content" class="hfeed">',
    'context' => 'content',
    ) );
    do_action( 'genesis_before_loop' );
    do_action( 'genesis_loop' );
    do_action( 'genesis_after_loop' );
    genesis_markup( array(
    'html5' => '</main>', //* end .content
    'xhtml' => '</div>', //* end #content
    ) );
    do_action( 'genesis_after_content' );
    echo '</div>'; //* end .content-sidebar-wrap or #content-sidebar-wrap
    do_action( 'genesis_after_content_sidebar_wrap' );
    get_footer();
    } 
    November 21, 2014 at 8:48 pm #132458
    psvj
    Member

    awesome thanks

    November 21, 2014 at 8:55 pm #132459
    Brad Dalton
    Participant

    Try this very basic explanation http://wpsites.net/wordpress-themes/the-genesis-function/


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2026 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