Jump to content

[Share] Unlink a page in Project Page

Recommended Posts

If you can't make code work, you can send link to project/portfolio page and let me know which items you want to unlink, I will check again.

#1. Suppose you have some sub-pages with URL

  • /projects/temania
  • /projects/tainui-bathroom

You want to unlink these items from Project Page (users won’t click on these items)

#2. You can use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('a.grid-item[href="/projects/temania"]').removeAttr('href');
  $('a.grid-item[href="/projects/tainui-bathroom"]').removeAttr('href');
})
</script>

image.png.490611aa72f531b2192d0ceadb5018c0.png

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
  • Replies 0
  • Views 88
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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.