Jump to content

Add multiple buttons to Header Nav

Recommended Posts

15 minutes ago, jackpopsicle said:

Site URL: https://hexahedron-saxophone-b9wb.squarespace.com

Hello,

My client has asked that I add two more buttons identical to the one I have in my header currently, either having three next to each other, or three stacked one on-top of another and I cannot figure it out.

How can I add 2 more buttons to my header navigation? And custom change the colours?

Thanks so much!

Is it that you mean?

image.thumb.png.1bb9e824f64366f6dbbb01bc2f73dcda.png

Link to comment
On 9/28/2021 at 7:14 PM, jackpopsicle said:

@tuanphan please can you help?

Add to Last Line in Code Injection > Footer. Replace google with new url. Replace Jack 1, Jack 2 text with new text

<script>
$(document).ready(function() { 
		$('<div class="header-actions-action header-actions-action--cta jack1"><a class="btn btn--border theme-btn--primary-inverse" href="https://google.com" target="_blank">Jack 1</a></div><div class="header-actions-action header-actions-action--cta jack2"><a class="btn btn--border theme-btn--primary-inverse" href="https://google.com" target="_blank">Jack 2</a></div>').appendTo('.header-display-desktop .header-actions.header-actions--right');
	});
</script>
<style>
  .header-display-desktop .header-actions.header-actions--right {
    flex-direction: column;
}
  .jack1 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
</style>

image.thumb.png.f454e93c479959bf74777cf2c4078644.png

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

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.