Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Akorf67

How can I make a folder link to a page

Question

Hello, I am using the corrigan template and am trying to use folders to make a more practical menu. I have read some other blog posts about how to link a folder to a page and not make the page appear in the dropdown box but none of it is working. How can I make a folder a page/link to a page? Thank you for any help!!

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0
23 hours ago, candidmkting said:

Two folders: The first being Why El Dorado and the second Shovel-Ready Properties. I want to be able to link when they click the dropdown.

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$("a.header-nav-folder-title[href="/why-el-dorado-1"]").click(function() {
    var link = $(this).text(),
        href = "/talent";
    window.location.href=href;
});
  $("a.header-nav-folder-title[href="/shovelready-properties-1"]").click(function() {
    var link = $(this).text(),
        href = "/contact-us";
    window.location.href=href;
});
</script>

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Squarespace Customer Care

Share this post


Link to post
  • 0

Okay. Remove above code and add this

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(".header-nav-item:first-child a").click(function() {
    var link = $(this).text(),
        href = "/why-el-dorado-1";
    window.location.href=href;
});
  $(".header-nav-item:nth-child(3) a").click(function() {
    var link = $(this).text(),
        href = "/shovelready-properties-1";
    window.location.href=href;
});
</script>

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Squarespace Customer Care

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...