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

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
Link to post
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Posts

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 prev

Thank you so much @paul2009 !!!! The code works perfectly and solves my issue with the un-clickable folders! 

See:  

Posted Images

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!

Link to post
8 hours ago, paul2009 said:

 

your post in Circle Forum.

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

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

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.
Explore our range of Squarespace Extensions, including the Wishlist, Variant Availability and Datepicker Extension
Note that links in my posts may be affiliate links. Need personal help? 
Book a Squarespace Expert.

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