Jump to content

Gallery Hover Feature

Recommended Posts

Site URL: https://www.901jets.com/901jetsourteam

I need to disable the images in the gallery from taking site visitors to another page. I just want them to hover over the picture and see the text without being able to click on any of the images or leave this page without going back up to the main menus at the top or bottom. The gallery images are just for show but I don't know how to disable the link. Any and all help would be greatly appreciated. The SquareSpace representative said it would be possible with a little code, but that is outside my lane. Thank you!

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Disabling pointer events is a good way to stop click-through, but you'll loose the hover effect. Check out this thread:

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
On 9/14/2022 at 2:51 AM, RhiDaugs said:

Site URL: https://www.901jets.com/901jetsourteam

I need to disable the images in the gallery from taking site visitors to another page. I just want them to hover over the picture and see the text without being able to click on any of the images or leave this page without going back up to the main menus at the top or bottom. The gallery images are just for show but I don't know how to disable the link. Any and all help would be greatly appreciated. The SquareSpace representative said it would be possible with a little code, but that is outside my lane. Thank you!

You can add this code to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('div#gridThumbs a.grid-item').removeAttr('href');
});
</script>

 

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.