LewisEisenburg Posted May 16 Posted May 16 How can I change the gallery image from the existing one to a second one on hover? We're using version 7.0. Site link below, on the home page we would like the images to change for a second image on hover, https://www.phasetwo.design/ Thanks
Solution tuanphan Posted May 18 Solution Posted May 18 You can use this code to Website > Website Tools > Custom CSS. Repeat similar for other items. article a[href="/onpay"]:hover img { content: url(https://cdn.pixabay.com/photo/2021/11/03/08/24/baskets-6765014_1280.jpg); } 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!)
LewisEisenburg Posted May 20 Author Posted May 20 @tuanphan Amazing thank you this works perfectly. Is there a way to also change the title text on hover at the same time? So for the OnPay project change the OnPay title pulled from the gallery to some other text?
tuanphan Posted May 21 Posted May 21 23 hours ago, LewisEisenburg said: @tuanphan Amazing thank you this works perfectly. Is there a way to also change the title text on hover at the same time? So for the OnPay project change the OnPay title pulled from the gallery to some other text? Use this CSS code under article.Index-gallery-item:has(a[href="/onpay"]:hover) h2 { visibility: hidden; } article.Index-gallery-item:has(a[href="/onpay"]:hover) h2:before { content: "new OnPay"; font-size: 20px; visibility: visible; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment