Jump to content

Adding button to mobile menu only in 7.0?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Add to Settings > Developer Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('<a href="/store/streeter-flynn-vodka-750-ml" class="mobile-btn">Buy Oneline</a>').appendTo('div.Mobile-bar [data-nc-container="top-center"]');
})
</script>
<style>
  div.Mobile-bar [data-nc-container="top-center"] {
    display: flex !important;
}

a.mobile-btn {
    background: #fff;
    color: #42708a !important;
    padding: 11px 9px !important;
    font-weight: 400;
}
</style>

image.thumb.png.e9373e3c9c5461b01f8526ea42468fcf.png

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.