How can I adjust image height in slider for mobile view?

Solved

How can I adjust image height in slider for mobile view?

collins276
Trailblazer
213 1 32

Hi guys,

How can I set the height of the images in Slider in mobile view about 80%.

Please check the url: https://189ee3-2.myshopify.com/

Thank you,

9e4e75664552e80cb143.jpg

 

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4731 1077 1742

This is an accepted solution.

Hi @collins276 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media screen and (max-width: 768px) {
.grid__item .card__inner {
    --ratio-percent: 125% !important;
}
}
</style>

PageFlyRichard_0-1708505894622.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

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


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


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

View solution in original post

Replies 2 (2)

PageFly-Richard
Shopify Partner
4731 1077 1742

This is an accepted solution.

Hi @collins276 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media screen and (max-width: 768px) {
.grid__item .card__inner {
    --ratio-percent: 125% !important;
}
}
</style>

PageFlyRichard_0-1708505894622.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

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


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


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

collins276
Trailblazer
213 1 32

Thank you🙏😀