How to change the blog-portfolio get_the_post_thumbnail width and height in RELATED POSTS FOR SINGLE
Hi
Currently i had a featured image for a post with image dimension 1200 x 630. For example: https://static.imsph.sg/uploads/sites/14/2020/10/Featured-image.jpg
When i check on the article detail page for the "RELATED POSTS" section. It is showing below html code without scrset:
<img width="960" height="630" src="https://static.imsph.sg/uploads/sites/14/2020/10/Featured-image-960x630.jpg" class="scale-with-grid wp-post-image" alt="">
Question:
a) How can i change the width and height? For example change to 1200 x 630
b) Is there a way to change from Betheme option?
c) Example image do not have this problem:
i uploaded another image with image dimension 1280 x 1000. For example: https://static.imsph.sg/uploads/sites/14/2020/10/copy2-single-post-featured-1.png. I do not have this problem. It is showing below html code with scrset:
<img width="960" height="720" src="https://static.imsph.sg/uploads/sites/14/2020/10/copy2-single-post-featured-1-960x720.png" class="scale-with-grid wp-post-image" alt="" srcset="https://static.imsph.sg/uploads/sites/14/2020/10/copy2-single-post-featured-1-960x720.png 960w, https://static.imsph.sg/uploads/sites/14/2020/10/copy2-single-post-featured-1-50x39.png 50w" sizes="(max-width: 960px) 100vw, 960px">
Comments
1. To change the size of the images used in portfolio/blog, please navigate to theme options>blog,portfolio&shop>featured image.
Notice!
Remember to use thumbnail regeneration after you make your changes. Otherwise, the images will not change their size.
thanks