Jump to content

Floating button anchor

Recommended Posts

Site URL: https://eduall.squarespace.com/pravidla

Good morning, 

i created a floating button "Order a webinar", here: https://eduall.squarespace.com/pravidla

But i need to make an anchor and redirect the button to that anchor (at the bottom of the page), so i need make a jump page on the same page. 


I probably know how to create an anchor with ID, but i dont know how the code in the floating button redirect to the anchor. 


I use this code for the floating button:

<a href="eduall.squarespace.com" class="t-button">Objednat webinář</a>
  .t-button {
      display: inline-block;
    background: green;
    color: white;
    padding: 1em 2em;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    position: fixed;
    top: 50%;
    right: 0;


and this code for the anchor:

<p id="nameofanchor"></p>


Thank you for your help, im trying to make it work last two days 😄





Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.