Ghost has a new look! Orders and accounts made before October 19th, 2026 are available on our legacy platform.
Ghost Plugins
Legacy Plugin

Solid Scroll Bar

RandomJavaScriptAll versionsFree
Solid Scroll Bar preview

The original library, featuring hundreds of free copy-and-paste plugins for Squarespace. These legacy plugins are preserved as they were originally released and are available as-is. For no-code plugins with visual editing and live previews, explore the current plugin library.

Overview

Add a solid colored scroll bar to the top of the browser when scrolling up and down. This plugin uses code injection and works with all template families.

Plugin Delivery

Free Plugin

This is a free plugin from the original Ghost Plugins library. Copy the code below and paste it into your Squarespace site. No purchase or account needed.

Squarespace Compatibility & Requirements

Compatibility notes preserved from the original release.

All versionsSupported
Custom CSSRequired

Customizable Options

  • From your Squarespace account, go to Site Code Injection. Copy and paste the code below into the Header Code Injection box.
  • Change the color values #fafafa and #fecb2f (this is the actual scroll bar color) to the color codes of your choice.
  • To change the thickness of your progress bar, replace 4px with the required amount. All 'height' and 'margin-top' values must be exactly the same.
  • This plugin comes with an Unlimited Use License. View License Terms

Install

Legacy plugins install by hand, there is no Plugin Studio build for this one.

  1. 1Copy the code from the Code Documentation section below.
  2. 2In Squarespace, open Website, Pages, Website Tools, Custom CSS for CSS, or Settings, Advanced, Code Injection for HTML and JavaScript.
  3. 3Paste the code, save, then refresh your site to see the plugin running.

Code Documentation

JavaScript

JavaScript
<div id='loadingbar-background'></div> <div id='loadingbar'><span id='loadingbar-cover'></span></div> <style> body{ margin-top: 4px; } #loadingbar-background{ position: fixed; z-index: 999998; top: 0px; left: 0px; height: 4px; width: 100%; background-color: #fafafa; } #loadingbar{ position: fixed; z-index: 999999; top: 0px; left: 0px; height: 4px; background-color: #fafafa; overflow: hidden; -webkit-border-radius: 0 1px 1px 0; border-radius: 0 1px 1px 0; } #loadingbar-cover{ position: absolute; z-index: 9999999; top: 0px; left: 0px; width: 100%; height: 4px; background-color: #fecb2f; -webkit-transition: all .1s ease-in-out !important; -moz-transition: all .1s ease-in-out !important; -o-transition: all .1s ease-in-out !important; transition: all .1s ease-in-out !important; -webkit-border-radius: 0 200px 200px 0; border-radius: 0 200px 200px 0; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script> $(document).ready(function(){function o(){var o=$(window).scrollTop(),n=$("body").height(),i=$(window).height();console.log(o);var d=o/(n-i)*101;$("#loadingbar").css("width",d+"%")}$(window).load(function(){o()}),$(window).on("resize",function(){o()}),$(window).scroll(function(n){o()})}); </script>

Script Settings

Values you can adjust at the top of the script to change how the plugin behaves.

o$(window).scrollTop(),n=$("body").height(),i=$(window).heigh
do/(n-i)*101

FAQ

Answers to common questions about setup, customization, and troubleshooting.

Is this plugin free?

Yes. Legacy plugins are free to use on any site, no account or purchase needed.

Will it work on my Squarespace version?

Legacy plugins were built for the version noted in Squarespace Compatibility & Requirements and are provided as-is. Newer platform changes may require small tweaks.

Can I customize it?

Yes. Edit the values in Script Settings or override the selectors listed under Classes and Styling in your Custom CSS.

Do you support legacy plugins?

Legacy plugins are no longer updated. For maintained plugins with Plugin Studio and ongoing support, browse the current plugin library.

Changelog

A history of updates released for this plugin.

Original release

Archived exactly as it shipped in the original plugin library. No further updates are planned for legacy plugins.

Community

Give claps, share your site, and talk with others using this plugin.

Community

0 claps

Show thanks for this plugin.

Loading…