IMPORTANT PLS: Need help in fixing slideshow (carousel) arrows

Solved

IMPORTANT PLS: Need help in fixing slideshow (carousel) arrows

RaghavGoel1
Excursionist
41 0 12

Hey all, 

I wanted to add arrows (to move left & right) to my slideshows (DAWN THEME) and remove the page numbers/dot panel from below. To achieve the same, I added the following code to theme.liquid under <head> element. 

CODE:

<style>
slideshow-component .slideshow__controls {
justify-content: space-between;
position: absolute;
top: 50%;
z-index: 9;
left: 50%;
width: 100%;
transform: translate(-50%, -50%);
border: unset;
}
slideshow-component .slideshow__controls .slider-counter,
slideshow-component .slideshow__controls .slideshow__autoplay {
display: none;
}
slideshow-component .slideshow__controls .slider-button {
width: 64px;
height: 84px;
}
slideshow-component .slideshow__controls .slider-button .icon {
height: 1.6rem;
}
@media (max-width: 749px) {
slideshow-component .slideshow__controls {
top: 30%;
}
}
</style>

The results were- 

On desktop its coming perfectly, as you can see below:

Screenshot 2024-08-03 at 10.41.46 AM.png


However, on mobile version I'm facing two issues-

1> On mobile, the arrows are not vertically centered... they are slightly towards the top.

Screenshot 2024-08-03 at 10.41.30 AM.png


2>  Also, the arrows are appearing on top when Im opening the mobile menu... they are not under the menu but rather on top of it...

Screenshot 2024-08-03 at 10.41.37 AM.png


 Can someone please please help fix these two things? I've tried myself for hours now. Would be really grateful. 

Thanks a ton!! 

My site - https://f40566-d3.myshopify.com/?_ab=0&_fd=0&_sc=1

(I can also change the code entirely if someone has a better alternative)

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
9267 1860 1892

This is an accepted solution.

Hi @RaghavGoel1 

Please update the code to this version

 

<style>
slideshow-component .slideshow__controls {
    justify-content: space-between;
    position: absolute;
    top: 50%;
    z-index: 2;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    border: unset;
}
slideshow-component .slideshow__controls .slider-counter,
slideshow-component .slideshow__controls .slideshow__autoplay {
    display: none;
}
slideshow-component .slideshow__controls .slider-button {
    width: 64px;
    height: 84px;
}
slideshow-component .slideshow__controls .slider-button .icon {
    height: 1.6rem;
}
</style>

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 4 (4)

GTLOfficial
Shopify Partner
489 99 95

Hello @RaghavGoel1 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the very end of the file.

@media (max-width: 749px) {
slideshow-component .slideshow__controls {
top: 50% !important;
}
}
.announcement-bar .slider-button--prev {
display: none;
}

.announcement-bar .slider-button--next {
display: none;
}

result
17.png

If this was helpful, hit the like button and mark the job as completed.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

Dan-From-Ryviu
Shopify Partner
9267 1860 1892

This is an accepted solution.

Hi @RaghavGoel1 

Please update the code to this version

 

<style>
slideshow-component .slideshow__controls {
    justify-content: space-between;
    position: absolute;
    top: 50%;
    z-index: 2;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    border: unset;
}
slideshow-component .slideshow__controls .slider-counter,
slideshow-component .slideshow__controls .slideshow__autoplay {
    display: none;
}
slideshow-component .slideshow__controls .slider-button {
    width: 64px;
    height: 84px;
}
slideshow-component .slideshow__controls .slider-button .icon {
    height: 1.6rem;
}
</style>

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

RaghavGoel1
Excursionist
41 0 12

Thanks Dan, this solves it. Thanks a lot 🙂 

BSSCommerce-B2B
Shopify Partner
1480 422 482

Hi @RaghavGoel1 

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the main css file base.css
Step 3. Copy this code at the end of the file

  @media (max-width: 749px) {
    slideshow-component .slideshow__controls {
            z-index: 2 !important;
            margin-top: 20%;
        }
    }
}

This is result 

BSSCommerceB2B_0-1722674197316.pngBSSCommerceB2B_1-1722674219629.png

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now