Jump to content

Is there a way to hide the previous/next arrows on the product page in mobile view?

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.scholarsayze.com/

Hello,

Is there a way to hide the previous/next arrows on the product page in mobile view?

I wanted to add two bigger gray arrows on mobile view only as the standard Squarespace white arrows don't really show very well on my light gray image backgrounds!

Here's the code I used to add the gray arrows:
@media (max-width: 768px) {
html .view-item .ProductItem-gallery-nav-arrow {
  display: block !important;
  opacity: 1 !important;
  top: 86%;
}
.view-item .ProductItem-gallery-nav-arrow svg {
  width: 30px;
  height: 30px;
  fill: gray;
}
}
 
Is there a way now to disable the Squarespace smaller white arrows?
 
Many thanks!
 
Site: www.scholarsayze.com
 
 

arrows-2.jpg

Link to comment
  • Solution
On 12/17/2021 at 9:51 PM, scholarsayze said:

Hello, I have done a temporary fix by deleting my bespoke gray arrows (code above) as I want to launch the site today.

If there is a code to remove the Squarespace prev/next arrows please let me know so I can re add my gray arrows at the bottom of the image rather than in the middle!

Many thanks!

Add to Design > Custom CSS

/* Hide product arrows on mobile */
@media screen and (max-width:767px) {
button.product-item-gallery-carousel-control {
    visibility: hidden !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.