Home › Forums › Support › Featured image shortcode: how to pick right image size? This topic has 3 replies, 2 voices, and was last updated 3 years, 9 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts July 4, 2020 at 8:22 am #1351768 Marc Hi there, I created a header element, with a shortcode for the featured image like suggested here: – https://generatepress.com/forums/topic/featured-image-shortcode/ Works great! However, it seems to pick the full size image? Actually I only need a 254x254px image. Is there a way to pick the 300x300px version of the image that gets created when uploading a square image? July 4, 2020 at 8:57 am #1351821 DavidStaff Customer Support Hi there, change this line: return get_the_post_thumbnail($post->ID); to: return get_the_post_thumbnail($post->ID, 'thumbnail' ); More info on that function here: https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/ July 5, 2020 at 12:30 pm #1353002 Marc Thnx David! ‘thumbnail’ seems a bit too small in some cases, however ‘medium’ looks good so far! 😀 July 5, 2020 at 11:57 pm #1353402 DavidStaff Customer Support Glad to hear that Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In