Add PHP Code to WordPress and put it all together

To create the PHP code that you need on your WordPress site use a PHP plugin like Insert PHP Code Snippet from xyzscripts.com

There are lots of other plugins like this on the market, but this one seemed to work perfectly fine, albeit you trade the “free” for many aggressive ads in admin backend.

The code you will add to the PHP snippet is below:

Scroll to Top