Madisen Posted September 29, 2021 Share Posted September 29, 2021 Site URL: https://turtle-broccoli-z9zz.squarespace.com/config/design/custom-css I have multiple buttons in my header, and I did this by using the code pasted below. In order for the code below to work, the buttons have to be linking to other pages. That works for one of my buttons/pages, but my other button needs to link to an anchor tag in the footer instead of a separate page. Could someone (@tuanphan—I'm always grateful for your responses) help me with some code that would allow me to have two buttons in the header to the left of my social media links where one button links to the anchor tag in the footer ("Contact" in attached screenshot) and one button links to a page ("Login" in attached screenshot) with this also working on mobile? Thank you so much! — — — // 2 Navigation Buttons // .header-nav-item:nth-child(4) a, .header-nav-item:nth-child(5) a { background: #ffb549 !important; color: #FFFFFF !important; width: 80px; border-radius: 0px; text-align: center !important; } // Navigation Padding // .header-nav-item a { padding: 8px !important; } // Active Navigation Line // .header-nav-item--active a { background-image: none !important; } Link to comment
Beyondspace Posted October 2, 2021 Share Posted October 2, 2021 On 9/30/2021 at 4:44 AM, Madisen said: Site URL: https://turtle-broccoli-z9zz.squarespace.com/config/design/custom-css I have multiple buttons in my header, and I did this by using the code pasted below. In order for the code below to work, the buttons have to be linking to other pages. That works for one of my buttons/pages, but my other button needs to link to an anchor tag in the footer instead of a separate page. Could someone (@tuanphan—I'm always grateful for your responses) help me with some code that would allow me to have two buttons in the header to the left of my social media links where one button links to the anchor tag in the footer ("Contact" in attached screenshot) and one button links to a page ("Login" in attached screenshot) with this also working on mobile? Thank you so much! — — — // 2 Navigation Buttons // .header-nav-item:nth-child(4) a, .header-nav-item:nth-child(5) a { background: #ffb549 !important; color: #FFFFFF !important; width: 80px; border-radius: 0px; text-align: center !important; } // Navigation Padding // .header-nav-item a { padding: 8px !important; } // Active Navigation Line // .header-nav-item--active a { background-image: none !important; } Your site is private now, you add to it a protected password to check it together BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment