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

Solved

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

empiricalarby
Trailblazer
227 1 49

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

Accepted Solution (1)

ZenoPageBuilder
Shopify Partner
1052 203 225

This is an accepted solution.

Hello @empiricalarby 👋

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

Screenshot 2023-11-23 at 09.45.02.png

Hope that helps!

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
7756 1876 2297

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;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1700692683628.png

     

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
empiricalarby
Trailblazer
227 1 49

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

ZenoPageBuilder
Shopify Partner
1052 203 225

This is an accepted solution.

Hello @empiricalarby 👋

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

Screenshot 2023-11-23 at 09.45.02.png

Hope that helps!

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

PageFly-Oliver
Shopify Partner
878 190 180

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

 

<style>
#MainContent .article-template__hero-container {
    max-width: 700px;
}
</style>

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

hoortex
Visitor
1 0 0

can't find  theme.liquid in my them