Blog Images Reduce Sizing

Solved

Blog Images Reduce Sizing

jwoycke
Tourist
10 0 2

I am using Shopify Athens theme and I wondering how I can reduce the image size on blog posts so it is smaller.

 

Blog is here:

 

https://wipingragworld.com/blogs/news/are-generic-blue-shop-towels-just-as-good

 

Thanks!

Accepted Solution (1)
AK_Design_Dev
Shopify Partner
187 16 16

This is an accepted solution.

try again and remove above css add this 

.template-blog .main-blog .card-article-image img {

    object-fit: scale-down;
}

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com

View solution in original post

Replies 22 (22)

pawankumar
Shopify Partner
700 102 123

Hi @jwoycke 
Please put this css in theme.liquid before body closing tag </body>

<style>
.article-template-image.article-template-image-extracted {
    max-width: 450px;
    aspect-ratio: 1;
}
</style>

You can adjust the width as per your need though
Please don't forget to Like and Mark Solution to the post that helped you.

Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @jwoycke 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.article-template-image img {
    width: 40%;
    margin: auto;
}
.article-template-image.article-template-image-extracted {
    max-width: 100%;
}
.article-template-image.article-template-image-extracted {
    display: flex;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1721408530753.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
jwoycke
Tourist
10 0 2

Thanks, how do I get it center now as its not?

AK_Design_Dev
Shopify Partner
187 16 16

already image are center because margin: auto are both side put same space so image already center 

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Made4uo-Ribe
Shopify Partner
10038 2387 3014

I already set the code into center. But you change it. Try not to change. 

 

.article-template-image img {
    width: 40%;
    margin: auto;
}
.article-template-image.article-template-image-extracted {
    max-width: 100%;
     display: flex;
}

 

And replace with this one. 

 

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
AK_Design_Dev
Shopify Partner
187 16 16

You can put this 

.article-template-image.article-template-image-extracted {

    max-width: 50%;

    margin: auto;

}

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
jwoycke
Tourist
10 0 2

Thanks...any idea how to reduce these images on the blog post page to fit in the set sizes?

 

https://wipingragworld.com/blogs/news

 

 

AK_Design_Dev
Shopify Partner
187 16 16

AK_Devloper_0-1721415215234.png


You can see this if you want this type then comment again also u can massege me

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
jwoycke
Tourist
10 0 2

yes, i would like that

AK_Design_Dev
Shopify Partner
187 16 16
You can add this on base.css file
.card-article-image img
 {

    object-fit: scale-down;

}

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
jwoycke
Tourist
10 0 2

thanks, but that didnt work

AK_Design_Dev
Shopify Partner
187 16 16

can you share the ss after add this css

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
jwoycke
Tourist
10 0 2

sorry i do not understand

AK_Design_Dev
Shopify Partner
187 16 16

i mean if you added  last sended css then what the result on Your store images or blogs images i see the screenshot of your store layout

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
jwoycke
Tourist
10 0 2

see below

 

Screenshot 2024-07-19 144326.jpg

AK_Design_Dev
Shopify Partner
187 16 16

This is an accepted solution.

try again and remove above css add this 

.template-blog .main-blog .card-article-image img {

    object-fit: scale-down;
}

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
AK_Design_Dev
Shopify Partner
187 16 16

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

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Made4uo-Ribe
Shopify Partner
10038 2387 3014

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.card-article-image .card-media img {
    object-fit: contain !important;
    }

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1721418361451.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
jwoycke
Tourist
10 0 2

for some reason, its still not resizing the images

AK_Design_Dev
Shopify Partner
187 16 16

because of image pick cover size thts a problem and show big size image 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Made4uo-Ribe
Shopify Partner
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

AK_Design_Dev
Shopify Partner
187 16 16

Hello @jwoycke 
You can add this css on your section-blog-post.css file

.article-template .article-template-image {
    margin-bottom: 3rem;

    max-width: 300px;
    margin: 0 auto 3rem;

}

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com