Jump to content

Help with unlinking a project page

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Add this to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('div#gridThumbs a.grid-item:nth-child(n+4)').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

Each project will have a link. The link is specified by the attribute: href

image.thumb.png.aba8881dd87ac3af9db8a62dbd2b50d8.png

The code will remove href attribute

image.thumb.png.6479bb84c08c6d96e9e0046ec754d420.png

and

nth-child(n+4) will target item 4, 5, 6..

Edited by tuanphan

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.