Skip to content

Instantly share code, notes, and snippets.

Created August 24, 2016 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/29de915edfa7ef9c8b11263907e0e484 to your computer and use it in GitHub Desktop.
Save anonymous/29de915edfa7ef9c8b11263907e0e484 to your computer and use it in GitHub Desktop.
<header class="entry-header">
<?php
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<?php
// Post thumbnail.
twentyfifteen_post_thumbnail();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment