Reveal second image on hover - Debut theme

Solved
iamcurious
Excursionist
21 0 12

Hi, would really appreciate some help with this – been trying to follow some threads on this topic but to no avail.

I would like to have the second image of each product revealed on hover. Am using Debut theme.

Thanks very much!

My site is www.curiouslah.com

Replies 133 (133)
GMco
Tourist
5 0 3

Thank you so much! I will be in touch soon.

KetanKumar
Shopify Partner
36502 3621 11764

@GMco 

Thanks for your responose 

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Chero
Tourist
7 0 3

hi, @iamcurious,

how did you manage to avoid double images on phone screen?

brave-tribe.de

ps: waskow

 

Effyl01
Excursionist
18 0 7

hi @KetanKumar 

My debudt theme is 17.7 how come i cant find any css.liquid file?

I also want to try this hover effect.

Effy.

KetanKumar
Shopify Partner
36502 3621 11764

@Effyl01 

it can be done some custom code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Effyl01
Excursionist
18 0 7

Hi,

Actually what I was look for and came across this article is to stop the behavior in the shopping cart page, when a user 1 product with the quantity button showing 1, if he will change it to zero it will automatically delete the item from the cart, no warrning.

Any idea how this case be changed?

Thanks!

KetanKumar
Shopify Partner
36502 3621 11764

@Effyl01 

if possible to share video further issue

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
NicolasMaverde
Explorer
74 1 33

Hi KetanKumar,

is it also possible to put a hover effect on normal images?

I Think about the section image-bar.

Here you can find an example of what I am thinking about: https://dribbble.com/shots/5551370-Portfolio-concept 

Thank You

Nicolas

KetanKumar
Shopify Partner
36502 3621 11764

@NicolasMaverde 

Yes, but it's not working all browser and mobile design 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
NicolasMaverde
Explorer
74 1 33

Could you send me a code so I can try?

Would be great!

 

Thank you!

KetanKumar
Shopify Partner
36502 3621 11764

@NicolasMaverde 

Thanks for it 

can you try and modification this  code

https://codepen.io/theadameden/pen/ReypqN

https://codepen.io/Alexee/pen/NXgYmN

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Bram1987
Excursionist
33 0 57

@iamcurious @KetanKumar 

Thanks a lot, this finally worked for me after trying many times before with different solutions and failing. 

However, the only problem I have is that the hover seems to always show the LAST picture in the gallery whereas I would prefer it to be the second picture. Is there any solution for this?

Thanks a lot, again

Website: www.umacantik.com 

KetanKumar
Shopify Partner
36502 3621 11764

@Bram1987 

YES, IS POSSIBLE TO CUSTOM CODE

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
jordae
Excursionist
22 0 3

Hello all,

Is this still working ?

I'm on Debut theme (v 17.12.0) the image change works on mouse hover but when I paste the code from this post in my product-card-grid.liquid it displays this "no image" instead of my products first photo

no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_600x600_gif.png

KetanKumar
Shopify Partner
36502 3621 11764

@jordae 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Daniel134
Excursionist
10 0 6

Hi can you help with where this specifcially goes into the product.liquid.grid file for debut theme. 

 

I have added the css, but after a few tries in that product grid template, I cannot get anything to appear. 

KetanKumar
Shopify Partner
36502 3621 11764

@Daniel134 

sorry for any issue 

please share store url and issue images 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Daniel134
Excursionist
10 0 6

The store url is shopshelovesme.com 

 

There is no longer any code in the product-grid file as I could not get it working. Only the css remains in the css file 

KetanKumar
Shopify Partner
36502 3621 11764

@Daniel134 

thanks for detail 

do you have like this

https://community.shopify.com/c/Shopify-Design/Collection-Add-a-hover-effect-to-product-images-on-yo...

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Daniel134
Excursionist
10 0 6

Yes, I have been following the instructions, but product-grid file is not exactly as it is stated above. Please see product grid file for SRC spot. How would I place this code here to show second image on hover. I believe I have CSS correct, but we can check after this step if it still does not show. 

 

I was trying to place it here in the file named: product-card-grid.liquid 

 

 

<div class="product-card__image-with-placeholder-wrapper" data-image-loading-animation>
<div id="{{ wrapper_id }}" class="grid-view-item__image-wrapper product-card__image-wrapper js">
<div style="padding-top:{% unless preview_image == blank %}{{ 1 | divided_by: preview_image.aspect_ratio | times: 100 }}%{% else %}100%{% endunless %};">
<img id="{{ img_id }}"
class="grid-view-item__image lazyload"
alt="{{ preview_image.alt }}"
data-src="{{ img_url }}"
data-widths="[180, 360, 540, 720, 900, 1080, 1296, 1512, 1728, 2048]"
data-aspectratio="{{ preview_image.aspect_ratio }}"
data-sizes="auto"
data-image>
</div>
</div>
</div>