Last active
March 7, 2017 02:51
-
-
Save neilgee/7aadb8f5b1416792dc5a to your computer and use it in GitHub Desktop.
Genesis Blank Page - Just some head data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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