Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active March 7, 2017 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neilgee/7aadb8f5b1416792dc5a to your computer and use it in GitHub Desktop.
Save neilgee/7aadb8f5b1416792dc5a to your computer and use it in GitHub Desktop.
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