Jump to content

staurora

Member
  • Posts

    5
  • Joined

  • Last visited

Reputation Activity

  1. Like
    staurora got a reaction from paul2009 in Navigation Folder Not Clickable   
    Thank you so much @paul2009 !!!! The code works perfectly and solves my issue with the un-clickable folders! 
  2. Like
    staurora got a reaction from tuanphan in Navigation Folder Not Clickable   
    Thank you so much @paul2009 !!!! The code works perfectly and solves my issue with the un-clickable folders! 
  3. Thanks
    staurora reacted to paul2009 in Navigation Folder Not Clickable   
    See:
     
  4. Thanks
    staurora reacted to tuanphan in Navigation Folder Not Clickable   
    your post in Circle Forum.
  5. Thanks
    staurora reacted to paul2009 in Navigation Folder Not Clickable   
    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).
×
×
  • 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.