How to adjust slideshow height for mobile and desktop views?

How to adjust slideshow height for mobile and desktop views?

sondreskskfsghj
Tourist
41 0 2

hey, I want to change the size of my slideshow, so that it looks like this on mobile:

sondreskskfsghj_0-1676487169504.png

Instead of this:

sondreskskfsghj_2-1676487241705.png

 

and on desktop I want it to look like this

sondreskskfsghj_1-1676487224652.png

 

instead of this:

sondreskskfsghj_3-1676487264110.png

I managed to change it on mobile by editing padding-bottom to 385 px for .hero-natural-mobile--template--17760203178306__6d58c228-e01a-45ae-ac59-d52f696909a3

 

but i don't know hot to implement it in the code

 

store link:  https://8c2dd1-3.myshopify.com/ 

 

 

Reply 1 (1)

GemPages
Shopify Partner
5625 1262 1279

Hello @sondreskskfsghj ,

 

You can follow these steps: 
1. Go to Online Store->Theme->Edit code

GemPages_0-1676529758978.png

2. Open your theme.liquid file, paste the below code before </body>

GemPages_1-1676529778526.png

    <style>
      @media (min-width: 768px ) {
        .shopify-section.index-section--hero [data-section-type="slideshow-section"] .flickity-slider .parallax-container {
            top: -10% !important;
        }
      }
       @media (min-width: 768px ) {
        .shopify-section.index-section--hero [data-section-type="slideshow-section"] .hero-natural-mobile--template--17760203178306__6d58c228-e01a-45ae-ac59-d52f696909a3 {
            height: 0;
            padding-bottom: 100.9267935578331%;
        }
      }
    </style>

I hope the above is useful to you.


Kind & Best regards, 
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center