Jump to content

Make one portfolio item unclickable, but maintain hover

Recommended Posts

  • Replies 3
  • Views 320
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

@KatJarv This needs JavaScript to disable it, we cant achieve that via CSS otherwise the rollover effect done.

put below code into Footer Code Injeciton.

<script>
   const disableLink = document.querySelector('#gridThumbs.portfolio-grid-overlay .grid-item:nth-child(4)');
    disableLink.addEventListener('click', function(event) {
        event.preventDefault();
    });
</script>

Please like and upvote if you found my comments helpful. Cheers 🙂

Agha Waqas (sqsp guru)
Squarespace Website Developer
Contact me: https://sqspguru.com or hello@sqspguru.com

 Did I help? 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.