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

Navigation Folder Not Clickable

Recommended Posts

Posted (edited)

Hello everyone, I've been having trouble getting navigation folders to work in the Degraw template (7.1). It appears to me that clicking on the navigation folders does not do anything. When I hover over the folder, I can see the proper URL/page destination in the bottom left corner. However, no amounts of clicks or positioning of the clicks seems to get the page to load.

I thought that the default was to load the first page in the folder, but nothing happens when I click. I've tried multiple iterations of this code injection that I've found in these forums/other websites to no avail:

<!-- Dropdown Accordion Code --><script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  $( document ).ready(function() {
    $(".header-nav-folder-title").eq(0).prop('href', '/services');
  });
</script>

Anyone else run into this problem? I would really appreciate any insight or help with this!

Thanks in advance for your help!

Edited by staurora

Share this post


Link to post

See:

 


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post

Hi @paul2009 , thank you very much for the quick response. I am new to this forum and am wondering why I am seeing a message that says "Sorry, we can't show this content because you do not have permission to see it" 

Thanks!

Share this post


Link to post

I'm very sorry guys! I don't understand what is going on. Paul2009's post is blank and so is tuuanphan's reply. Thanks again for your guys' help with this. It is very appreciated!

image.thumb.png.06360bbd509557924db88f665bec47c5.png

Share this post


Link to post
9 hours ago, staurora said:

I am new to this forum and am wondering why I am seeing a message that says "Sorry, we can't show this content because you do not have permission to see it" 

Sorry! It's our fault. I inadvertently linked one of my posts that isn't public; it is restricted to Squarespace Circle members only.

In the original posts, I explained that Squarespace have prevented clicking on nav folders in 7.1 which is why previously-posted solutions don't work.

The solution below, posted by @tuanphan should work when added to Settings > Advanced > Code Injection. Modify the links (/folder1, /page1 and so on) to suit your folder urls and pages.

<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script> 
  $(document).ready(function() { 
    $('a.header-nav-folder-title[href="/folder1"]').click(function() { 
      window.location = "/page1"; 
    }); 
    $('a.header-nav-folder-title[href="/folder2"]').click(function() {
      window.location = "/page2";
    });
  }); 
</script>

Note that it may appear to give strange results whilst logged on (for example a double refresh within the preview window) but this is due to the way that preview window is framed, but it should work fine for website visitors (or whilst logged out).


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

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...