4 comments
  1. Dong Profile Pic

    Thanks for this professional article.
    Although we can resize the images ourselves in Settings > Media.
    But the article doesn’t give multiple specific values.
    Could you please tell me, in astra or most themes, what should be the size of the images set in Settings > Media?

    1. Eric Bullet Profile Pic

      “While different themes have different featured image sizes, we recommend going with an image size of 1200 pixels by 628 pixels if you want to play it safe.”

      If you want to keep it simple I would just upload and image 1200×628. If you want to get complicated create a new feature image size 2x as large.

      “For a post’s featured image, you can add the custom image size using the_post_thumbnail() function in the theme template file.”

      if ( has_post_thumbnail() ) {
      the_post_thumbnail( ‘your-custom-size’ );
      }

      1. Gareth Profile Pic

        Can you write or update this guide on featured images for those using your Astra Theme?

        Which theme template file are we supposed to change in Astra? The only one I can find is under inc/blog/blog.php on line 219

        if ( has_post_thumbnail() ) {
        $post_featured_data = '';
        $post_featured_data .= get_the_post_thumbnail();
        $post_featured_data .= '
        ';
        } else {

        Is it this? This seems overly complicated given how much you’re emphasising the importance of featured images and optimisaton.

        Also, in the intro, it mentions you’ll address “How do I change the default featured image?”. Can you update this article to answer this? Particularly for Astra Theme and adding a fallback image option.

        Thanks.

  2. Kaz Profile Pic

    Hi, I’m using the Astra Starter template (Natural) and have added a blog….I’m using Beaver Builder as well. My problem is the image sizes (height) are all different. I have tried resizing them to be 630px in height but they are all rendering different. I have read your article on image sizes but nothing seems to change. Many thanks – Kaz

Leave a Comment

Your email address will not be published. Required fields are marked *

Join 1,653,898+ Happy Site Owners Using Astra

Whether you are a beginner, small business owner, or professional web developer, Astra provides all the tools you need to easily build your beautiful WordPress website.

Scroll to Top