Jump to content

How do I Make Folders Clickable?

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

Site URL: https://www.kaifilms.com

I am having this issue. Trying to make the folder link clickable. I have two instances of this on my site (services and about folders) and was wondering if anybody can help me. I have tried all the code I could find in this forum and others and no luck yet.

The end goal is to have my folder title click to the first page in the folder. So Services goes to Services/services page. I also want to keep the folder drop down intact and will work on mobile.

Thanks so much.

www.kaifilms.com

Link to comment

Use this (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() { 
	$('a.header-nav-folder-title[href="/Video-Services"]').click(function() {
		window.location = "https://www.kaifilms.com/video-services";
	});
	$('.header-nav-folder-title[href="/about-kai-films"]').click(function() {
		window.location = "https://www.kaifilms.com/about";
	});
});
</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
  • 4 weeks later...

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.