Blank Title and Content Page Template in Genesis Theme

This code will output a blank barebones WordPress Genesis page/post template with just the post title and content as entered in the post editor in the WP Dashboard. No header or footer content are included but WordPress hooks have been left for scripts to be included.

This may be useful when a page needs to be different from the main theme but retain some of the inner styling.

<?php
/*
Template Name:Title and Content Page
*/
do_action( 'genesis_doctype' );
do_action( 'genesis_title' );
do_action( 'genesis_meta' );
wp_head();
?>
</head>
<?php
genesis_markup( array(
'html5' => '<body class="barebones">',
'xhtml' => sprintf( '<body class="">', implode( ' ', get_body_class() ) ),
'context' => 'body',//Body Markup
) );
genesis_markup( array(
'html5' => '<div %s>',
'xhtml' => '<div id="wrap">',
'context' => 'site-container',//Site Container Markup
) );
genesis_markup( array(
'html5' => '<div %s>',
'xhtml' => '<div id="inner">',
'context' => 'site-inner', //Site Inner Markup
) );
genesis_structural_wrap( 'site-inner' ); //Site Inner wrap
do_action( 'genesis_entry_header' ); //Title
do_action( 'genesis_entry_content' ); //Main Content
echo '</div>'; //* end .wrap
echo '</div>'; //* end .site-inner
echo '</div>'; //* end .site-container
wp_footer();
?>
</body>
</html>
view raw el-blanko.php hosted with ❤ by GitHub

So the regular wp_head and wp_footer are retained for plugin hooks as well as header data for SEO, Scripts and HTML declaration  in genesis_doctypegenesis_title and genesis_meta.

After this the HTML markup is maintained with just the title and content produced for output using 2 actions genesis_entry_header and genesis_entry_content.

genesis-page-templateFile the template in your child theme and select from within the page editor.

If you require a post template use the plugin Single Post Template to enable that functionality.  Just change the opening PHP template declaration:

<?php
/*
Single Post Template: Title and Content Page
*/

This page is an example here is this page on the above template. Any default CSS declarations for the body, .site-container .site-inner and .entry-header will apply, you can override these by just adding a unique body class and assign new CSS rules.