Skip to content

Instantly share code, notes, and snippets.

Created August 24, 2016 14:43
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/b6bb76a12822ef72067173e590611ef6 to your computer and use it in GitHub Desktop.
Save anonymous/b6bb76a12822ef72067173e590611ef6 to your computer and use it in GitHub Desktop.
<?php
// Post thumbnail.
twentyfifteen_post_thumbnail();
?>
<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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment