Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Genesis Blank Page - Just some head data
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' );
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>' );
echo '</div>'; //* end .wrap
echo '</div>'; //* end .site-inner
echo '</div>'; //* end .site-container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.