Solved

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

empiricalarby
Pathfinder
151 1 27

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 217

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
5416 1303 1601

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


empiricalarby
Pathfinder
151 1 27

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

ZenoPageBuilder
Shopify Partner
1052 203 217

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
Astronaut
840 176 156

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