How to reduce the size of my blog post's featured image on desktop?

See this post on desktop: https://empiricalwater.com/blogs/blog/cupping-method

On mobile it looks great, but that image needs to be smaller on desktop. I tried reducing resolution and it just got fuzzy without actually getting smaller. How can this be done?

Thank you

2 Likes

Hi @empiricalarby

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.article-template__hero-adapt.media {
    padding-bottom: 50% !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thanks, but this is cropping the image. Is there a way to scale down the image without cropping it?

Hello @empiricalarby :waving_hand:

Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

.article-template__hero-container {
    max-width: 726px !important;
}

The result

Hope that helps!

4 Likes

Hi @empiricalarby ,

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file → Save


Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

can’t find theme.liquid in my them

This didn’t change anything on my page. I’m running Dawn 15.1.0.

Thanks - John,