Closed blacksheepdeluxe closed 3 years ago
I solved it by adding this script. "section-header__title" ist the class name of my h1 heading. I append the page number to the title if "page=" is inside the url on pageload.
$(document).ready(function() { if (window.location.href.indexOf("page=") > -1) { var pagenumber = window.location.href.split('page=').pop(); var elementTitle = $('.section-headertitle').first().text(); elementTitle += ' - Page ' + pagenumber; $('.section-headertitle').first().text(elementTitle); } });
In the demo https://infinite-scroll.com/demo/full-page/ if you scroll down to page 2 for example, click on a link and then use the back button, on top of the restored page there is a page title showing "Full page demo - page 2". This title is missing in my case. Is this page title part of the infinite-scroll feature? Anyone knows how to get this page title?