Skip to content

Instantly share code, notes, and snippets.

@themorgantown
Last active July 29, 2022 15:48
Show Gist options
  • Save themorgantown/5273724 to your computer and use it in GitHub Desktop.
Save themorgantown/5273724 to your computer and use it in GitHub Desktop.
Empty Wordpress Template - https://hype.desk.com/agent/case/19403 -
<?php
/**
* Template Name: Blank Template
*
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment