Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gabriel Ward
Gabriel Ward
20,222 Points

Thumbnail and Large sizes

I have a theme with a static front page and a separate page for all of my blog posts. The front page displays the latest three posts from my blog page. My posts have a feature image, with the following code in my single.php,

<?php the_post_thumbnail('large'); ?>

THen on my page-front.php, I have the following code to display the feature images from the posts, on the front page,

<?php the_post_thumbnail('thumbnail'); ?>

For some reason, the thumbnails on the front page are blurry. Any help on why this might be, would be great appreciated.

1 Answer

Greetings Gabriel Ward !

What exactly are the specifics behind the images (dimensions, format, etc) and how are they being implemented on the front in, are they set to be 100% width? WordPress sets thumbnails to a default of 100px square so if they are set to fill their container, they might be getting stretched.