How to adjust an image in the slideshow

How to adjust an image in the slideshow

CreatorTim
Trailblazer
471 1 71

Hi, I added a vertical image to my slideshow and I need to center it, remove the background, and get rid of the frame.

CreatorTim_0-1745957911086.png

 

Here’s my store: https://creationwithtim.com/products/cinematiq-lut-collection-copy
(Just scroll all the way down to find the slideshow section)

 

Thanks a lot,
Tim

Replies 4 (4)

Asad-Mahmood
Shopify Partner
445 80 91

use this css

@media (min-width:768px;) {
.slideshow__media img {
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 0px 414px !important;
}
.slideshow__media.banner__media.media {
    background: #fff;
}
}
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




CreatorTim
Trailblazer
471 1 71

Hi appreciate your reply! I added the code, but it’s still not centered, it’s leaning more to the left.

 

I did tweak it a bit, and now I just need to shrink the whole thing and center it properly.

 

Here’s what it looks like right now: (It's big as hell)

CreatorTim_0-1746035178214.png


So ideally, I want the max height to be around 600px, and the width to adjust automatically based on that

topnewyork
Astronaut
1368 165 224

Hi @CreatorTim 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
#shopify-section-template--24956466200841__slideshow_TA93c4 .slideshow__media img {
    margin-left: 38rem !important;
}
.banner--adapt, .banner--adapt_image.banner--mobile-bottom {
    background: white !important;
}
</style>

 If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
CreatorTim
Trailblazer
471 1 71

Hey, I added the code, but it’s still not centered, it’s leaning more to the left.

 

I did tweak it a bit, and now I just need to shrink the whole thing and center it properly.

 

Here’s what it looks like right now: (It's big as hell)

CreatorTim_0-1746035178214.png


So ideally, I want the max height to be around 600px, and the width to adjust automatically based on that.