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

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


Sabu

Question

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
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...