Jump to content

Customizing nav bar

Recommended Posts

Hi,

So I have my nav bar centered, but I want a button on top of my nav bar that says contents and when clicked the nav bar becomes visible right below it. Code wise I was thinking the functionality be someone like this demo except it will display horizontal not vertical. I understand the code and everything I am little confused on how to exactly make it work with squarespace's built in nav bar already. Anyone have any idea how to maybe go about this? I included an image to help show how I kind of want it to look after one clicks conte button.Thank you!

Screenshot (378).png

Link to comment
  • Replies 3
  • Views 472
  • Created
  • Last Reply

You need to use CSS to hide Nav, then use JavaScript to attach effect to button

When clicking on  button, JavaScript will add a class: show-on-click to button, then we use CSS to show up Nav.

It is time-consuming.

You may need to be mentally prepared to hire someone to do this, in case you don't get an answer in the next few days.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Yeah I understand how to trigger the visibility i think my main issue is solely getting the button above the nav bar. When I put code blocks it only effects the body but how exactly can i add code to the very top of the page? I just want to simply add a button and place it at the very top of the page and I can make the functionality myslef

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.