RainMan Posted January 25, 2020 Share Posted January 25, 2020 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! Link to comment
tuanphan Posted January 26, 2020 Share Posted January 26, 2020 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
RainMan Posted January 26, 2020 Author Share Posted January 26, 2020 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
tuanphan Posted January 26, 2020 Share Posted January 26, 2020 use CSS position: fixed/absolute to move button to top or use JavaScript to insert button to top 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.