Jump to content

Grid Overlay, How do I turn off individual pages for each picture.

Recommended Posts

Hello! I love the grid overlay in portfolios, but I do not want each picture to be clickable and have its own separate page. I want to keep the hover/overlay. 

What code should I use and where do I insert that code? 

 

Thank you! 

Link to comment
  • Replies 1
  • Views 650
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can use this to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){    
         $('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.