Jump to content

MissChi

Member
  • Posts

    26
  • Joined

  • Last visited

Posts posted by MissChi

  1. On 7/21/2021 at 9:46 PM, tuanphan said:

    With your plan, edit Site Footer >> Add a Code Block >> paste this code

    <a href="#top" class="t-top"><span class="arrow"></span>Top</a>

    Next, go to Design > Custom CSS > Add this code

    /* Back to Top */
    .t-top {
        font-weight: 300;
        letter-spacing: 3px;
        font-size: 15px;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.6;
        padding-left: 2px;
        padding-top: 4px;
        position: fixed;
        right: 30px;
        bottom: 30px;
        width: 40px;
        height: 40px;
        z-index: 999;
        background-color: transparent;
        color: #000;
    }
    .t-top .arrow:before {
          font-family: 'squarespace-ui-font';
        font-style: normal;
        font-weight: 300;
        font-size: 20px;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        content: "\e02d";
        text-align: center;
        display: block;
        vertical-align: middle;
        transform: rotate(-90deg);
        cursor: pointer;
        margin-left: -4px;
    }
    .t-top .arrow {display:inline;}

     

    Hi Tuan,

    Unfortunately when I go to add code to the footer, it says it is a premium feature and the box is greyed out.

    When I add the custom CSS without adding the footer code injection, the scroll to top function does not work.

    Is there a work around without needing the footer code injection?

    Thanks!

     

    Capture3.JPG

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