Re: Blog Photos in theme: Impact

Solved

Blog Photos in theme: Impact

Laure5
Excursionist
15 0 5

Screenshot 2024-03-19 at 08.22.46.png

Good day,

 

Is there a quick way to resize or my blog photos to the same size? I have tried everything I can think of and they are all different sizes still.

Accepted Solution (1)
Liquid_xPert_SJ
Shopify Partner
1388 144 216

This is an accepted solution.

@Laure5 

please place below code into  your theme files,

 

Online Store > Edit Code > Assets > theme.css file and place at the very bottom OR

.blog-post-card__figure img {
	object-fit: cover;
	width: auto;
	height: 300px;
}

 Online Store > Edit Code > Layout > theme.liquid file before </head> tag

<style>
.blog-post-card__figure img {
	object-fit: cover;
	width: auto;
	height: 300px;
}
</style>

 

Results:

2024-03-19 12_06_27-Adobe Dreamweaver CS6 - [color of skies.html].png

 

 

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 10 (10)

Liquid_xPert_SJ
Shopify Partner
1388 144 216

@Laure5 

 

can you please share the store url?

 

Thanks

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Laure5
Excursionist
15 0 5
Liquid_xPert_SJ
Shopify Partner
1388 144 216

This is an accepted solution.

@Laure5 

please place below code into  your theme files,

 

Online Store > Edit Code > Assets > theme.css file and place at the very bottom OR

.blog-post-card__figure img {
	object-fit: cover;
	width: auto;
	height: 300px;
}

 Online Store > Edit Code > Layout > theme.liquid file before </head> tag

<style>
.blog-post-card__figure img {
	object-fit: cover;
	width: auto;
	height: 300px;
}
</style>

 

Results:

2024-03-19 12_06_27-Adobe Dreamweaver CS6 - [color of skies.html].png

 

 

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Laure5
Excursionist
15 0 5

My main post was affected now too and its picture is too small now. How do I fix this?

Screenshot 2024-03-19 at 09.14.11.png

Liquid_xPert_SJ
Shopify Partner
1388 144 216

you just removed it? please show it again i will provide the code for that too.

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Laure5
Excursionist
15 0 5

@Liquid_xPert_SJ , I have removed the main post. All good. Thanks for the help.

 

Liquid_xPert_SJ
Shopify Partner
1388 144 216

update your code with this

.blog-post-card__figure img {
	object-fit: cover;
	width: 100%;
	height: 300px;
}
- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
- Need THEME UPDATES but have custom codes? No worries, for an affordable price.

Devinlabs
Shopify Partner
21 2 6

Hi , 

.blog-photo {
    width: 300px; /* Set your desired width */
    height: 200px; /* Set your desired height */
    object-fit: cover; /* This property ensures the image covers the defined dimensions */
}

apply the blog-photo class to all your blog photos: 
try this and let me know if you still need any help. 

DevinLabs Solutions
Email at info@devinlabs.com, devinlabsolutions@gmail.com

Hire us at: Shopify Support
Laure5
Excursionist
15 0 5

Hi @Devinlabs, you will have to tell me where I need to apply that. 

Devinlabs
Shopify Partner
21 2 6

You can put that into assets/theme.css

DevinLabs Solutions
Email at info@devinlabs.com, devinlabsolutions@gmail.com

Hire us at: Shopify Support