Jump to content

Custom link on navigation folder title

Recommended Posts

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

Hello guys,

I have issues with my custom CSS code for the Navigation Folder Link. 

My Version is Squarespace 7.0 Brine and I got a Business Plan.

In the Navigation Menu I want to link the Dropdown Folder "Work" which now has the URL /portfolio-dropdown to my starting page, which has the URL /portfolio 

I tried several methods, then with this one it worked. But only the first time loading the page. When I tried to click on "Work" again or refresh the page, it linked to /portfolio-dropdown again.

What am I doing wrong?

Many thanks in advance


Code in the footer:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script> 
   $(document).ready(function() { 
     $('.Header-nav-folder-title[href="/portfolio-dropdown"]').attr("href", "/portfolio");
   }); 
</script>

 

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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.