Jump to content

7.1 - Add second button to Navigation

Recommended Posts

  • Replies 7
  • Views 697
  • Created
  • Last Reply

Top Posters In This Topic

You can achieve this layout by adding a button at footer then moving it to header via javascript code. What is your plan?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

@TVB Don't remove any code in your current code.

Add this to Last Line in Code Injection > Footer

<script>
  $(document).ready(function() { 
		$('footer.sections .button-block').insertBefore('.header-title-nav-wrapper');
	});
</script>

 

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
19 hours ago, TVB said:

@tuanphan on mobile it looks strange. Can we add the button into the menu on mobile like the other button is?

 

 

Screen Shot 2022-06-13 at 9.12.18 AM.png

Remove the code & use this new code

<script>
  $(document).ready(function() { 
		$('footer.sections .button-block').insertBefore('.header-display-desktop .header-title-nav-wrapper');
	});
</script>

It will remove problem on mobile. When you've done it, let me know. I will check code to add button into mobile menu

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
20 hours ago, TVB said:

@tuanphan is there any way to have the button show on mobile in this menu? Above the other button? Thank you!(:

 

Screen Shot 2022-06-14 at 9.21.32 AM.png

Add this new code

<script>
  $(document).ready(function() { 
		$('footer.sections .button-block').insertBefore('.header-display-desktop .header-title-nav-wrapper');
    $('header#header .button-block').clone().insertBefore('.header-menu-cta a');
	});
</script>

 

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.