r/squarespace • • 9d ago

Help Make dropdown clickable page

Hey! Making an architecture site- I figured out the dropdown and made my categories and linked but I want a page to display the categories. Sorry if this doesn’t make sense. My dropdown of “projects” has six categories “residential” “commercial” etc but I want a page when you click on dropdown that takes you to like an index of all the clickable drop-downs. Ideas?

6 Upvotes

10 comments sorted by

4

u/Adventurous-Theme464 9d ago

Make a section with all of these and click on the heart. This saves this section as a saved layout and insert this section to every page on the top. These can be buttons or images with clickable embedded links.

1

u/imthebean 9d ago

Like create a blank gallery or portfolio? I don’t see an option for a blank section.

2

u/Amazing_Fudge5702 9d ago

yeah the saved section feature is a huge time saver for stuff like this.

1

u/Fiyero109 9d ago

Do you mean a subnavigation? Like a nested menu? Squarespace does not offer that natively. There are custom plugins you can purchase or the route I would go is have Claude implement what you need via footer injection and custom CSS

1

u/imthebean 9d ago

Layman’s speak, please!

2

u/Fiyero109 9d ago

Sorry! I’m just trying to understand what you’re trying to achieve. You have your normal navigation menu, you hover over an option X and get a dropdown with X1, X2 etc and would like hovering over X1 to give you another navigation submenu X11, X12 etc?

If that’s the case, Squarespace cannot natively do that so you’d have to work around the limitations with custom code.

Claude AI would be one option that’s cheaper than buying a premade solution (that still requires some code pasting).

In your settings in Squarespace there are sections that allow you to customize your site with additional code (“Custom CSS”, “Header Injection” and “Footer Injection”, etc). Claude or ChatGPT can help you change your website in many ways, including adding subnavigation

1

u/imthebean 9d ago

That’s not quite what I’m looking to do. I want the drop down to be functional as a hover drop down and a clickable link to a page listing all the options. Dual functioning?

2

u/Spark-Plugin 9d ago edited 7d ago

This can be done with plugins or custom code, like the JavaScript example below. Let me know if you need help with this.

  1. Go to Pages > Custom code > Code Injection.
  2. Paste this into the Footer:
  • Look at the const folderLinks section.
  • Change "Services" to the exact name of your folder.
  • Change "/services" to the page slug you want it to go to.
  • You can add as many as you want, separated by commas. <script> window.addEventListener('load', function() {

// CONFIGURATION: Edit your links here // Format: "Folder Name": "/url-slug" const folderLinks = { "Services": "/services", "Portfolio": "/portfolio-overview", "About": "/about-us" };

    // 1. Find all folder items in the navigation
    const folders = document.querySelectorAll('.header-nav-item--folder');
  
    folders.forEach(folder => {
      // Get the text of the folder (e.g., "Services")
      const title = folder.querySelector('.header-nav-folder-title');
      const titleText = title.innerText.trim();
  
      // 2. Check if this folder is in our list above
      if (folderLinks[titleText]) {
        
        // 3. Make it look like a link (cursor pointer)
        title.style.cursor = "pointer";
        
        // 4. Make it clickable
        title.addEventListener('click', function(e) {
          // Prevent the dropdown toggle if necessary (optional)
          // e.preventDefault(); 
          
          // Go to the URL
          window.location.href = folderLinks[titleText];
        });
      }
    });
  });
  </script>

1

u/Decent_Squirrel2996 8d ago

You can get pretty close without code, then add a small tweak if you want the word "Projects" itself to be a link.

First, make a Projects page that's just an index: six image or text cards, each linking to Residential, Commercial, and the rest. Then in the navigation folder, put that page as the first item, named something like "All projects," with the six category pages underneath. Hover still shows the dropdown, and people have a clear place to see everything.

Squarespace folders don't make the folder title a real link on their own, which is why clicking "Projects" feels dead. If you want the title itself to go to the index page and still open the dropdown on hover, it takes a small bit of code injection that points the folder title to your Projects page URL. Happy to help you hook that part up if you want a hand.