Jump to content

Add a button to upper left mobile nav in 7.0

Recommended Posts

  • Replies 5
  • Views 313
  • Created
  • Last Reply

Top Posters In This Topic

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('<div class="sqs-block button-block sqs-block-button"><div class="sqs-block-content"><div class="sqs-block-button-container sqs-block-button-container--center"><a href="https://google.com" class="sqs-block-button-element--medium sqs-button-element--small sqs-block-button-element">Archive</a></div></div></div>').appendTo('.Mobile-bar [data-nc-container="top-left"]');
})
</script>

image.png.8a7b22b8c94c50e12f3539708ec7c23b.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.