Last active
December 7, 2017 20:46
-
-
Save InternetMedicineMan/66665a4b38afd51a1210bc16a34d11dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?> | |
<header <?php astra_entry_header_class(); ?> | |
<?php | |
if ( !empty( $thumb[0] ) ) | |
{ | |
echo 'style="background-image: url(' . $thumb[0] . ')" class="entry-header photo"'; | |
} | |
else | |
{ | |
echo 'class="entry-header"'; | |
} | |
?> > | |
<?php astra_the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment