Back To Top Button
Back to all plugins
BackToTopButton.gif
Allow your users to easily and smoothly scroll back to the top of a page on the click of a button! Below you will find a super-simple tutorial that will guide you through the installation and setup of this plugin.
Step 1: Insert the JavaScript
Insert the following code into the site wide 'Header Code Injection' area or the 'Page Header Code Injection' area to implement this plugin on individual page(s) - more info below.
Copy & paste this code:
Top
Site wide Code Injection:
sitewide-1.png
sitewide-2.png
sitewide-3.png
Individual Page Header Code Injection:
download.png
header-2.png
header-3.png
header-4.png
Step 2: Insert the CSS
Insert the following code into your Squarespace site's Custom CSS editor or the Individual Page Header CSS injection (more info below) - the values in bold can be changed to suit your branding and site design.
Where colour values are added, you can use either of the following:
Valid colour name e.g. 'red' or 'yellow'
Hex value e.g. #FECB2F
RGB(a) value e.g. rgb (255,255,255) or rgba (255,255,255,0.8) - optional opacity value '0.8'
HSL(s) value (optional opacity values '0.8') e.g. hsl (0, 0%, 20%) or hsla (0, 0%, 20%, 0.8) - optional opacity value '0.8'
If you need help finding colours and building colour palettes - coolors.io is an awesome resource!
Copy & paste this code for right-aligned:
/* RIGHT BACK TO TOP BUTTON CSS */
.back-to-top {
font-weight: 500 !important;
background-color: #FECB2F;
color: #333333;
bottom: 10px;
right: 23px;
width: 50px;
height: 50px;
display: none;
z-index: 999;
position: fixed;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a.back-to-top {
font-weight: 400;
letter-spacing: 2px;
font-size: 13px;
text-transform: uppercase;
text-align: center;
line-height: 1.8;
padding-left: 2px;
padding-top: 4px;
}
a.back-to-top .arrow:before {
content: "\e02d";
font-family: 'squarespace-ui-font';
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 1.2;
speak: none;
-webkit-font-smoothing: antialiased;
text-align: center;
display: block;
vertical-align: middle;
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
cursor: pointer;
margin-left: -4px;
}
Brigitte Schäfer-Eckl
Brigitte Schäfer-Eckl
Seit 2006 als selbstständige Personalvermittlerin, insbesondere für Kanzleien tätig
2000 bis 2006 Personalleiterin einer international tätigen Rechtsanwaltskanzlei mit über 800 Mitarbeitern, Aufbau der gesamten firmenweiten Personaladministration
Referentin für Personalentwicklung und Leiterin der Aus- und Weiterbildungsabteilung in einem Chemieunternehmen mit über 500 Mitarbeitern
Zugelassene Ausbilderin (IHK)
Dozentin für Personalentwicklung und Personalwesen an der Kath. Stiftungsfachhochschule München sowie der Berufsgenossenschaft der Chemischen Industrie
Lehramtstudium (1. und 2. Staatsexamen) Biologie und Chemie für Gymnasien