Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Genesis Blank Page - Just some head data
<?php
/*
Template Name:Title and Content Page
Template Post Type: post, page
*/
/** Add unique custom body class to the head */
add_filter( 'body_class', 'add_body_class' );
function add_body_class( $classes ) {
if ( is_single( 'blank-title-and-content-page-template-in-genesis-theme' ))
$classes[] = 'bare-bones';
return $classes;
}
do_action( 'genesis_doctype' );
do_action( 'genesis_title' );
do_action( 'genesis_meta' );
wp_head();
?>
</head>
<?php
genesis_markup( array(
'html5' => '<body %s">',
'context' => 'body',//Body Markup
) );
genesis_markup( array(
'html5' => '<div %s>',
'context' => 'site-container',//Site Container Markup
) );
genesis_markup( array(
'html5' => '<div %s>',
'context' => 'site-inner', //Site Inner Markup
) );
genesis_structural_wrap( 'site-inner' ); //Site Inner wrap
// Display Heading and Content
the_title( '<h3>', '</h3>' );
the_content();
echo '</div>'; //* end .wrap
echo '</div>'; //* end .site-inner
echo '</div>'; //* end .site-container
wp_footer();
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment