Jump to content

7.1 - Add second button to Navigation

Recommended Posts

  • Replies 7
  • 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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.