Doesn’t work for Twenty Nineteen post thumbnails (featured images)
-
This plugin does not seem to work with post thumbnails (featured images) in non-singular views (e.g. the home page) in Twenty Nineteen.
This comment says that a non-cropped image size must be used. But Twenty Nineteen by default uses the
post-thumbnail
size, as seen ininc/template-tags.php
(see towards the bottom):function twentynineteen_post_thumbnail() { if ( ! twentynineteen_can_show_post_thumbnail() ) { return; } if ( is_singular() ) : ?> <figure class="post-thumbnail"> <?php the_post_thumbnail(); ?> </figure><!-- .post-thumbnail --> <?php else : ?> <figure class="post-thumbnail"> <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"> <?php the_post_thumbnail( 'post-thumbnail' ); ?> </a> </figure> <?php endif; // End is_singular(). }
Therefore, it seems like this plugin doesn’t work with featured image in Twenty Nineteen by default. Is this possible to fix?
- The topic ‘Doesn’t work for Twenty Nineteen post thumbnails (featured images)’ is closed to new replies.