Skip to content
Mc Starters Main Logo Circle
  • Home
  • CompanyExpand
    • About Us
    • Meet with Team
    • Media Assets
    • We’re Hiring
    • Contact Us
  • Top CategoriesExpand
    • WooCommerce
    • Elementor
    • Webflow
    • Divi
    • WordPress
    • SEO
    • Payoneer Guides
    • Shopify Tutorials
    • Squarespace
    • Weebly
    • Wix
    • Website Builders
    • CRM
    • Payment
  • Tips and TricksExpand
    • AI
    • Business
    • Insurance
    • Resources
    • Review
    • Science and Technology
    • Windows 10
    • Windows 11
  • ServicesExpand
    • WordPress Web Design
    • Elementor Expert
    • Divi Theme Experts
    • Blog Setup
    • WordPress Customization
    • E-Commerce Websites
    • Crocoblock Expert
    • Hire Webflow Expert
  • Free TemplatesExpand
    • Elementor Templates
    • Elementor Header
    • Elementor Footer
    • Elementor Single Post Templates
    • Elementor Mega Menu
    • Divi Templates
    • Divi Header Layouts
    • Divi Footer Layout
  • Tools
  • Guest Posts

Lifetime Pro Access to Elementor & Divi Templates

Grab deal
Mc Starters Main Logo Circle
Home / Squarespace / How to Add Back to Top Button in Squarespace

How to Add Back to Top Button in Squarespace

Published By :Mudassar Shakeel February 26, 2022March 15, 2024 Squarespace
Add Back to Top Button in Squarespace

Do you want to add back to the top button in Squarespace? We will help you with that in just two steps. We make this with custom javascript and CSS code.

Download Free Header Templates For WordPress Elementor Site.

Add Back to Top Button in Squarespace

Please follow the below step to add scroll back to the top button in Squarespace.

Step 1: First copy below Javascript code.

<script>
  const body = document.querySelector('body');
  const cursor = document.createElement('button');
  cursor.className = "cursor";
  cursor.textContent = "⬆";

   body.appendChild(cursor);
   cursor.addEventListener("click", function(){
     window.scrollTo(0, 0);
 });
</script>

Step 2: Go to Setting > Advanced > Code Injection > Footer > Scroll Down > Paste Code in Footer

Squarespace footer injection code

Step 3: Now Copy Below CSS code

html{
  scroll-behavior: smooth !important;
}
.cursor{
    z-index: 10;
    position: fixed;
    bottom: 30px;
    right: 20px;
    border: none;
    outline: none;
    
  /* The Background color of the button. You can put your hex color instead of crimson*/
    background: blue;
  
  /* The color of the icon inside the button. You can put your hex color instead #fff*/
    color: #fff;
    padding: .8rem 1.3rem;
    border-radius: 50%;
  
  /* increase or decrease the icon font-size to make the button bigger or smaller */
    font-size: 1.3rem;
    font-weight: bold;
}
@media (max-width: 500px){
    .cursor{
        right: 10px;
        bottom: 45px;
    }
}

Step 4: Go to Design > Custom Css > Paste Above Code.

Squarespace custom code for Back to Top Button

We hope you found Add Back to Top Button in Squarespace post helpful. But if you still face any problems, then comment below.

Make Website With Drag and Drop Page Builder in 5 Mint.

See also  How to change the email used in the contact form Squarespace

Best VPN Services Cheapest Hosting converkit convertkit Create Custom Header Credit Cards CRM Software customization tips Customize Elementor Styles Detailed Comparison divi guide divi tips Elementor Error Elementor Guide Elementor mega menu Elementor Pro Elementor Templates Elementor tips email marketing tools Hosting service Insurance Industry integrate Elementor Form Managed hosting Marketing tools comparsions mega menu design NordVPN payment tips Shopify speed optimization tips & trick tools for small business Top CRM System webflow guide Webflow Tips Website builder Website navigations Woocommerce tips WordPress wordpress developer WordPress developer USA Wordpress guide wordpress guides WordPress Maintenance services WordPress plugin Wordpress support

Facebook FacebookTwitter TwitterInstagram InstagramPinterest PinterestYouTube YouTube

© 2025 Mc Starters Blog

  • Guest Posts
  • HTML Sitemap
  • XML Sitemap
  • Affiliate Disclosure
Scroll to top
  • Home
  • Company
    • About Us
    • Meet with Team
    • Media Assets
    • We’re Hiring
    • Contact Us
  • Top Categories
    • WooCommerce
    • Elementor
    • Webflow
    • Divi
    • WordPress
    • SEO
    • Payoneer Guides
    • Shopify Tutorials
    • Squarespace
    • Weebly
    • Wix
    • Website Builders
    • CRM
    • Payment
  • Tips and Tricks
    • AI
    • Business
    • Insurance
    • Resources
    • Review
    • Science and Technology
    • Windows 10
    • Windows 11
  • Services
    • WordPress Web Design
    • Elementor Expert
    • Divi Theme Experts
    • Blog Setup
    • WordPress Customization
    • E-Commerce Websites
    • Crocoblock Expert
    • Hire Webflow Expert
  • Free Templates
    • Elementor Templates
    • Elementor Header
    • Elementor Footer
    • Elementor Single Post Templates
    • Elementor Mega Menu
    • Divi Templates
    • Divi Header Layouts
    • Divi Footer Layout
  • Tools
  • Guest Posts
Facebook X Instagram YouTube Pinterest
Search