Jump to content

Dee_Dublin

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Dee_Dublin

  1. Hi there,

    I have the same query as above, however when I paste this code on my site it doesn't work. I've changed the href to link to my url, but the button is still now showing. Updated code below. Is there any chance you can help me on this please?

    This is my desktop view with the Book Online button.

    image.png.e3aa275f0fcd1e4d183b41110cdb140b.png

    And mobile view

    image.png.a8ac4ecb40a92c011ea08ca7b6501c93.png

     

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
      $(document).ready(function() { 
            $('<a href="/bookonline" class="tp-button">Book Online</a>').insertBefore('.Mobile [data-nc-container="top-right"] button');
        });

    </script>
    <style>
      a.tp-button {
        border: 2px solid #c6c5b3;
        color: #c6c5b3;
        padding-left: 10px;
        padding-right: 10px;
    }
    </style>

×
×
  • 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.