Jump to content

Making top dropdown navigation selectable and redirecting it to its own page

Recommended Posts

Hi,

 

I am wanting to make the top navigation item (the folder) selectable and be able to be redirected to its own page, currently it cannot be selected, only the dropdown navigations can be selected. I have multiple folders and dropdown items, I have tried all the codes from various forums and still no luck, I have never used code before so this is very new to me, hopefully you might be able to help me. I am using version 7.1 and the template is Pazari. 

 

My website url is:

https://sabu-studio.squarespace.com/

The password is:123456789

 

I am wanting to link furniture-folder to:

https://sabu-studio.squarespace.com/furniture

 

and lighting-folder to:

https://sabu-studio.squarespace.com/lighting

 

I have tried the following code:

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script>

  $('.header-nav-folder-title[href="/furniture-folder"]').click(function() {

    window.location = "https://sabu-studio.squarespace.com/furniture";

  });

  $('.header-nav-folder-title[href="/lighting-folder"]').click(function() {

    window.location = "https://sabu-studio.squarespace.com/lighting";

  });

</script>

 

 

Am I doing this correctly?

 

Thanks for your help!

 

Sabu

Edited by Sabu
Link to comment
  • 1 year later...
  • Replies 2
  • Views 382
  • Created
  • Last Reply

Top Posters In This Topic

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.