Jump to content

Second image change issue for products mobile (hover effect)

Recommended Posts

Hi all,

Few days ago hover effect in my shop stopped working on mobile. I know that it was working perfectly, but it just stopped and now by touching it showing a blank/white screen instead of second picture of my product. Nothing changed on the desktop version, the issue is only on mobile.

Does anyone started experiencing this? I wrote to Squarespace, as no additional code was added from my side, which could maybe initiate the problem.

adding video.

Thank you !

Link to comment
On 8/9/2024 at 10:06 PM, ArthurD said:

Hi!
I have exactly the same issue on my website 

Use this code to Website Tools > Custom CSS

@media screen and (max-width:767px) {
img.grid-item-image.grid-image-cover {
    opacity: 1 !important;
}
img.grid-item-image.grid-item-additional-image {
    opacity: 0 !important;
}
img.grid-item-image.grid-image-hover {
    opacity: 0 !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

Hi @tuanphan ,

With your provided CSS you only stopping the hover effect? Am I correct?

Because, for fluent hover I was using below codes:

Header:

<script>
document.addEventListener("touchstart", function(){}, true);
</script>

CSS:

element:hover, element:active {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-user-select: none;
-webkit-touch-callout: none /*only to disable context menu on long press*/
}

And as I mentioned it just magically stopped working. 

Mindaugas

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.