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

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.