jakson-wordpress-development-and-courses

How to add a scroll to top button in WordPress without using a plugin 2024

YouTube video

Adding a scroll to top button up your WordPress website is easy and you can do it without a plugin.

I first made my original scroll to top tutorial here on the channel over 7 years ago (!) and back then it was a case of grading a plugin, configuring it and bam, you have your button.

These days I’m all about reducing plugins to an absolute minimum so in this WordPress tutorial I’l show you just how easy it it to add a scroll to top with just a little bit of code.

Download the code and other WP goodies here: https://jakson.co/freebies/
WordPress Block Icon Library here: https://wphelpers.dev/icons

00:00 Scroll to top button explained
00:37 Create with a simple image with a link is – not good enough!
03:25 The quick and dirty method with a code snippet
04:30 Lets do it properly with adding code to our theme
04:48 Make a WordPress function for the icon button
06:54 Adding the CSS to the theme
07:46 Getting the Javascript added to our theme files
09:38 See the final result

Ciao!
Jakson

wordpress #blockthemes #pagebuilder #wordpressdevelopment