Every available WordPress theme doesn’t give you the option to control if you want to show featured image in a post or in what size you want to display them. The image is crucial for your blog post as it’s probably the first thing audience notice. For ex, I am using the Hueman theme and that doesn’t display featured images in single post. Here is what I did and thought to share so you can be benefited.
Go to your theme directory For ex: wp-content/themes/hueman Take a backup of single.php Edit single.php and search for Add following above the
Save the file and refresh your wordpress to see them in action.
Above code will show featured image in the single post as original image size. This is how single.php will look like.
If you want to control the size, you can change the_post_thumbnail parameter. To display default thumbnail size (default 150px x 150px max) To display in medium size (default 300px x 300px max) To display in large size (default 640px x 640px max) To display in original uploaded size This has helped me and I hope you too. Don’t forget to compress your images with these awesome free online image compressor tool. Let me know how it goes with your theme.