Jump to content

Question for adding scroll up button

Recommended Posts

Site URL: https://www.yichongz.com/

.scrollup {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    position: fixed!important;
    bottom: 20px;
    right: 40px;
	z-index: 1;
    display: none;
    text-indent: -9999px;
}

I used the code like this, and insert the block into the footer.

But the problem is, I want the scroll up button float and fixed on the screen, but if I put the block in the footer, it just stays in the area of the footer.

I tried adding a block outside of the future and those codes work well. However, I don't want to insert new block in every page. Does anyone know how to deal with the blocks in the footer?

BTW, I've used these codes for a long time, and everything looks good when I first implemented it. Did the Squarespace upgraded these days?

Link to comment
  • 3 weeks later...
  • Replies 1
  • Views 333
  • Created
  • Last Reply
On 6/19/2021 at 3:46 AM, char777 said:

Site URL: https://www.yichongz.com/

.scrollup {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    position: fixed!important;
    bottom: 20px;
    right: 40px;
	z-index: 1;
    display: none;
    text-indent: -9999px;
}

I used the code like this, and insert the block into the footer.

But the problem is, I want the scroll up button float and fixed on the screen, but if I put the block in the footer, it just stays in the area of the footer.

I tried adding a block outside of the future and those codes work well. However, I don't want to insert new block in every page. Does anyone know how to deal with the blocks in the footer?

BTW, I've used these codes for a long time, and everything looks good when I first implemented it. Did the Squarespace upgraded these days?

So instead place it in footer section, try adding it into Code Injection Footer instead

image.thumb.png.39fbad3488dfda848bdd99fc248369c9.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

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