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

Hayden: Adding Dropdown Navigation for Pages Within an Index

Question

I've created a website using the Hayden template and I would like to add a dropdown navigation to the main menu so that users can quickly navigate to a specific section within an index from the menu. Right now, the theme only supports the top level index page to appear within the main navigation, and I would like to be able to reveal the sections within the index in a dropdown menu upon hover. This would likely involve creating anchor tags for the different sections and then referencing them in the dropdown menu, but I'm not sure what code I need to inject in order to achieve this, and how to do it without breaking the navigation for tablet and mobile.

I've seen others attempt to do this by creating folders and then referencing the index sections as a page within a folder, but this doesn't achieve the effect I'm looking for because, if a user clicks on the section within the dropdown navigation, it will only reveal that particular section and the user cannot scroll up or down to view the other sections. Does this make sense? In short, what I'm looking to do is to create dropdown menu navigation for the sections within an index using anchor tags.

Any suggestions and coding wisdom are welcome!! Thanks!

Edited by TreyT

Share this post


Link to post

Recommended Posts

  • 1

Hi Shabrinank

i'll try to be as limpid as possible. sorry if i sound like an elementary school teacher :P

The drop-down menu was made this way :

  • Create a folder page for each title in the nav bar
  • the contents of the folders are all links (in the index : add page > link)
  • the links are named according to what you need in the menu
  • they link to unlinked pages, organized within unlinked indexes (in the unlinked section)
  • the links are all anchors within the right index (for instance : /apropos#mission)

now all that's missing is a line of code so the title in the nav is darkened when you are on a page. i could post this (if needed) once my programmer has made the code for me ^_^

hope this helps, cheers

.f

Share this post


Link to post
  • 1

Hi there. I understand that it is your website, so you want it to look a specific way, but just as an FYI, in modern web design, on a navigation menu, you generally don't want the link-active action to take over.That's considered kind of dated in the web world. The logic is that people are aware now that as soon as they hover over the nav, it will show as active (like the way your text color changes on hover). Also, most browsers show the annoying line under links whick ruins the elegant part of the design.However, you can go into your DESIGN--->STYLE EDITOR then play around with the colors to make them pop a little more. The gray color on your site is pretty passive. There are options to change those colors, etc. under the navigation tab.hope this helps.-m

Share this post


Link to post
  • 0

Yes, it's a great work-around, amd that is what i did in the end. but i still have a problem : the title in the navigation (the folder's name) doesn't show up as "active" (i.e. as a differnt color) — and it's obvious it wouldn't. i imagine there's probably a code i could inject in the index page to make it change color. But i'm not much for hand-coding. Any ideas of something i could try?here's the website i'm building : https://margarines-thibault.squarespace.com/thanks for your follow-up ^_^cheers

Share this post


Link to post
  • 0

Hi purpleman

Thanks for the advice, it's welcomed, including visual tips.However, just to make sure you understand my question: i'm not looking to make the title change color with a hover, but when i'm on that particular page, exactly the way it does in this squarespace answers page (for instance, questions in highlighted, while tags, users, badges and unanswered are darker). Now, since the title in my nav is merely a link, it doesn't highlight when i'm visiting that page. (in my case, the page i'm talking of is the products page.) any thoughts or cues on that?

Share this post


Link to post
  • 0

Hi purpleman

Thanks for the advice, it's welcomed, including visual tips.However, just to make sure you understand my question: i'm not looking to make the title change color with a hover, but when i'm on that particular page, exactly the way it does in this squarespace answers page (for instance, questions in highlighted, while tags, users, badges and unanswered are darker). Now, since the title in my nav is merely a link, it doesn't highlight when i'm visiting that page. (in my case, the page i'm talking of is the products page.) any thoughts or cues on that?

Share this post


Link to post
  • 0

Hi purpleman

Thanks for the advice, it's welcomed, including visual tips.However, just to make sure you understand my question: i'm not looking to make the title change color with a hover, but when i'm on that particular page, exactly the way it does in this squarespace answers page (for instance, questions in highlighted, while tags, users, badges and unanswered are darker). Now, since the title in my nav is merely a link, it doesn't highlight when i'm visiting that page. (in my case, the page i'm talking of is the products page.) any thoughts or cues on that?

Share this post


Link to post
  • 0

Hi purpleman

Thanks for the advice, it's welcomed, including visual tips.However, just to make sure you understand my question: i'm not looking to make the title change color with a hover, but when i'm on that particular page, exactly the way it does in this squarespace answers page (for instance, questions in highlighted, while tags, users, badges and unanswered are darker). Now, since the title in my nav is merely a link, it doesn't highlight when i'm visiting that page. (in my case, the page i'm talking of is the products page.) any thoughts or cues on that?

Edited by TreyT

Share this post


Link to post
  • 0

Ahhh. Now I see. To do that, you'd need to to create separate pages for your categories.Right now it just scrolls down the same page, so I'm sure it's messing with the css/html.But,If you break off those categories into separate distinct pages, then put those in a folder titled OUR PRODUCTS it will do that. I actually think it'd endup looking a bit more tidy that way. I'm always a fan of minimalist building though.The scrolling background pics you have are cool, but you might have to simplify to get the effects you'd like.Here's my site, done on bedfored: http://www.wrenandcuff.com/site/the-stompboxes

Share this post


Link to post
  • 0

Hi, I'm new to forums, so I'm sorry if I do anything dumb... but I was looking for a similar solution I believe. I am using the Marquee template, with Index pages, and sub pages in those indexes, to get the scrolling display. I would like to have the navigation hold these sub pages, so that every page is one click away. Is this possible?

Should I post this here or as a new thread?

Site is still FAR from finished, but for reference... https://marc-therrien-h871.squarespace.com

Thanks for any help!

Edited by cptredbeard11

Share this post


Link to post
  • 0

Hi, I'm new to forums, so I'm sorry if I do anything dumb... but I was looking for a similar solution I believe. I am using the Marquee template, with Index pages, and sub pages in those indexes, to get the scrolling display. I would like to have the navigation hold these sub pages, so that every page is one click away. Is this possible?

Should I post this here or as a new thread?

Site is still FAR from finished, but for reference... https://marc-therrien-h871.squarespace.com

Thanks for any help!

Share this post


Link to post
  • 0

Hello, i'm looking to achieve the same dropdown menu as you, i already have the dropdown with the index but I do not know how to make it, once you click, scroll to the desired page inside the index instead of just appear in it.

How did you manage to achieve this? Some coding?

Sorry to bother you and thanks!

Share this post


Link to post
  • 0

FredericG and purpleman,

I am trying to do the exact same thing on my website, I am using the Hayden template and I want to create drop-down menus in the navigation that points to a specific section on an index (same page). I took a look into your site https://margarines-thibault.squarespace.com/#margarines and it's doing the exact thing that I want. Would you please kindly explain to me how to do this? Can you elaborate more on using 'link pages in a folder'? I really need the solution soon and I would really appreciate your help!

Edited by shabrinank

Share this post


Link to post
  • 0

FredericG and purpleman,

I am trying to do the exact same thing on my website, I am using the Hayden template and I want to create drop-down menus in the navigation that points to a specific section on an index (same page). I took a look into your site https://margarines-thibault.squarespace.com/#margarines and it's doing the exact thing that I want. Would you please kindly explain to me how to do this? Can you elaborate more on using 'link pages in a folder'? I really need the solution soon and I would really appreciate your help!

Share this post


Link to post
  • 0

This has been VERY helpful! I'm just stuck on the last step. I don't think I'm understanding what to do to set up these anchors. Right now the link pages are simply linking to the pages on their own (not the section within the index). Any advice you can offer would be greatly appreciated!

Thanks,Joe

Share this post


Link to post
  • 0

Hello,I have gotten the sub links in the drop down menu to work however the main title of the navigation menu doesn't go through to the top of the index page they click through to the first page or link under the drop down menu. @fredericG how did you achieve this effect in your site?Thank you,Gavin

Share this post


Link to post
  • 0

Hello,I have gotten the sub links in the drop down menu to work however the main title of the navigation menu doesn't go through to the top of the index page they click through to the first page or link under the drop down menu. @fredericG how did you achieve this effect in your site?Thank you,Gavin

Share this post


Link to post
  • 0

also, when clicked on the last link in the index is linked slightly lower than the rest and the title of the section is covered up by the navigation header, the others do not have this problem and the exact same code was placed for all of them.my site link is gavin-ostertag.squarespace.comthank you

Share this post


Link to post
  • 0

Hi fredericG,

Was wondering how you made the navigation title display the entire index page that you set up in the unlinked pages.

I followed steps 1-4, but could get what you mean by anchors to the right index. I linked the link pages (under the folder) to the unlinked pages in the unlinked index page alright, but couldn't get the main navigation title (folder title) to display the scrolling index page. Can you let me know what I'm missing?

I'm after the same effect that you did with your https://margarines-thibault.squarespace.com/produits/#supermarche

Share this post


Link to post
  • 0

Hi I see the best answer, and can someone explain in detail the bullet points? I am not understanding (in the index add page > link)?

Share this post


Link to post
  • 0

@JCamden @dc_marshall @PVNZ Sorry if this comes late. It might help others who stumble upon this:Making anchor link (last bullet point):Once you're done with steps 1 through 4 : - Go back to your Folder in the linked section - Click on the + below to open the "create new page" contextual menu - Choose "link" (the eighth item as of may 2017) - Click to add URL : The URL should be /index-name#page-name (replace with your index and page name) - The link title (above URL) is what will appear in the drop-down menu

Hope this helps :)

Share this post


Link to post
  • 0

The trick is to have what you want off the main menu (in your case : web dev and dig maketing") in the "not linked" section, below secondary nav in the left panelBut i understand that you want everything in a single index page.I guess an easy way would be to move your whole index down in the "not linked" pages, and replace "portfolio" and "blog" with a links called portfolio and blog and leading to the actual pages."contact" is a different page so it's not an issue.

hope that helps

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...