Skip to content

Instantly share code, notes, and snippets.

@cdils
Last active August 29, 2015 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdils/0cfc7fcae8ae949e7439 to your computer and use it in GitHub Desktop.
Save cdils/0cfc7fcae8ae949e7439 to your computer and use it in GitHub Desktop.
add_action( 'genesis_entry_footer', 'genesis_post_meta' );
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();
}
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment