Solved

Taste Theme - Blog Images Ratio to Square

Velvety92
Tourist
6 0 2

Dear community,

Is there a way to adjust these photos to a 1x1 ratio (square) both on the blog and blog post?

Theme: Taste

Looking forward to hearing from you, and thank you in advance!


Screenshot 2024-04-15 at 21.08.24.png

Screenshot 2024-04-15 at 21.09.37.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
6076 1461 1800

This is an accepted solution.

Thanks for the info, 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:

 

.card__inner.color-scheme-1.gradient.ratio {
    width: 80%;
    height: 500px;
    margin: auto;
}

@media screen and (min-width: 990px){
.article-template__hero-medium {
    height: 55rem;
    width: 60%;
    margin: auto;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1713280906654.pngMade4uoRibe_1-1713280918666.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.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 8 (8)

Made4uo-Ribe
Shopify Partner
6076 1461 1800

Hi @Velvety92 

Can i take a look, would you mind to share your store URL? 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.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Velvety92
Tourist
6 0 2

Hi!

Of course 🙂 Here it is: https://www.wildricelondon.com/blogs/news So it is both the images in the blog, and in the blog posts as this one: https://www.wildricelondon.com/blogs/news/ed-pramits-massaman-short-rib

Made4uo-Ribe
Shopify Partner
6076 1461 1800

This is an accepted solution.

Thanks for the info, 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:

 

.card__inner.color-scheme-1.gradient.ratio {
    width: 80%;
    height: 500px;
    margin: auto;
}

@media screen and (min-width: 990px){
.article-template__hero-medium {
    height: 55rem;
    width: 60%;
    margin: auto;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1713280906654.pngMade4uoRibe_1-1713280918666.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.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Velvety92
Tourist
6 0 2

You are an absolute magician, thank you so much - I very much appreciate it!

Velvety92
Tourist
6 0 2

Lastly, would you have any recommendations so it works on mobile too?

Velvety92
Tourist
6 0 2

Lastly, it did destroy the product images too ;( Screenshot 2024-04-16 at 21.52.24.png

Made4uo-Ribe
Shopify Partner
6076 1461 1800

Ops sorry, I forgot that is for blogs only. 

 

@media only screen and (min-width: 750px){
.blog-articles__article.article.scroll-trigger.animate--slide-in .card__inner {
    width: 80%;
    height: 55vh;
    margin: auto;
}
}
@media only screen and (max-width: 749px){
.blog-articles__article.article.scroll-trigger.animate--slide-in .card__inner {
    width: 70%;
    margin: auto;
}
}
@media screen and (min-width: 990px){
.article-template__hero-medium {
    height: 55rem;
    width: 60%;
    margin: auto;
}
}

 

And Save. 

Note: please check it first before marked solution. 😊 Not just here but the next time  you post. 

 

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

Check this one again. 

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.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Velvety92
Tourist
6 0 2

Of course, first time here. Sorry about that - thank you for your quick fix.