slideshow height in dawn theme

slideshow height in dawn theme

shamsnisa
Excursionist
21 1 8

Hi!

I want to edit the height of the slideshow in my banner. right now my slideshow height is small, how can I customize my code so that it will be smaller?

Here is my Shopify site:

https://kittykatty.ca/

 

and password is kitttkatty

 

Replies 3 (3)

Victor
Shopify Staff
2611 237 571

Hi @shamsnisa,

 

What theme are you using on your store? If it's a Shopify-made theme, you can contact our support team and ask if it's possible for our themes team to assist you. If it's built by a third-party, you can look into hiring a Shopify Expert who can help you make this change.

Victor | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Hi @shamsnisa 

We can make it smaller, but we will have problem with the images. 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:

 

.banner--small:not(.banner--adapt) {
        min-height: auto;
        height: 30rem;
    }

 

And save.

For the default set up if we change the height this will be the result:

Made4uoRibe_0-1715620347422.png

But when I change into fill. This is the result. 

Made4uoRibe_1-1715620377331.png

It looks stretch. This is the code I used. 

 

.slideshow__media.banner__media.media img {
    object-fit: fill;
}

 

And Save. 

 

 

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.
shamsnisa
Excursionist
21 1 8

Thanks @Made4uo-Ribe but when I am using the first solution the height is not changing on my screen.

I am working on desktop.