Jump to content

Customizing a drop down to disable items listed below in the drop down.

Go to solution Solved by Spark-Plugin,

Recommended Posts

Posted

Site URL: https://www.info@j2-c.com

I have made a drop down list and the header is not clickable by default. I have read multiple posts about how to disable the header, but I am trying to disable the items beneath the header so that when hovering over "Service Area" it lists each page we have created to represent the various cities/counties we service, but I neither want to build out those pages nor have our viewers click an item in the list and be directed to an "Empty Page".  I know the CSS code below is not correct (it is from another website that someone was helping with so "investment-solutions" and "contact" are site specific), but I expect it is in the right direction.

a.Header-nav-folder-title[href="/investment-solutions"], a.Header-nav-folder-title[href="/contact"] {
    pointer-events: none;
}
  • Solution
Posted (edited)

Hello @designatedIT

The easiest way to do this is once you have created a folder for the dropdown, instead of adding full pages, you can add them as "Links." When setting up each link, simply enter a # symbol in the URL field. This will make the item show up in the dropdown without actually linking to another page.

Also, don't forget to turn off the "open in new tab" option.

Give this a try and let me know how it goes!

 

 

 

folder.PNG

links.PNG

saves.PNG

Edited by Spark-Plugin

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

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.