Disable infinite scroll in Ghost's Casper theme

Characters from Toy Story facing away to send a child off to school.
To infinity and beyond.

The team at Ghost added the ability to disable the infinite scroll in the latest version of the Casper theme (5.4.2). If you want to disable it, go to Settings > Site injection and paste the following code snippet into Site Header:


This will replace the infinite scroll with a pagination control.


Infinite homepage scroll prevents quick footer access · Issue #900 · TryGhost/Casper
When you&#39;re on the homepage (or tags page), posts keep loading when you reach the bottom. That is quite convenient for keeping the visitor engaged, but it does prevent a visitor from accessing ...

Featured image by Chris Hardy.