Add a custom image size for the logo

This commit is contained in:
Kelly Dwan 2019-10-28 10:33:26 -04:00
parent 407dcc8d22
commit 6113ce0c7f
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
3 changed files with 13 additions and 3 deletions

View file

@ -33,7 +33,15 @@ get_header(); ?>
?>
</span>
</div>
<?php the_post_thumbnail( array( 288, 288 ) ); ?>
<div class="entry-image">
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-image__logo">
<?php the_post_thumbnail( 'pledge-logo' ); ?>
</div>
<?php else : ?>
<div class="entry-image__placeholder"></div>
<?php endif; ?>
</div><!-- .entry-image -->
</header>
<div class="entry-content">