Jump to content

Add multiple buttons to Header Nav

Recommended Posts

  • Replies 4
  • Views 995
  • Created
  • Last Reply
Posted
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

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

📑 Squarespace embed PDF popup (affiliate link)

Posted
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!)

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.