Skwolven Posted November 12, 2020 Share Posted November 12, 2020 Site URL: http://fredfilms.com/shows I have this script on my blog page: <script> document.querySelectorAll('.BlogList-pagination-link-label').forEach(function(paginationLink) { if (paginationLink.textContent == "Newer") { paginationLink.textContent = "Previous page"; // Customize "Newer" text here } else { paginationLink.textContent = "Next page"; // Customize "Older" text here } }) </script> It has successfully replaced the pagination link titles when I view the site through the squarespace editor, but now that the site is live and I'm viewing it on other browsers and not logged in to the admin it is still showing as Older/Newer Any ideas how I can fix this so it works on the live site? Link to comment
Skwolven Posted November 12, 2020 Author Share Posted November 12, 2020 ok so it works when I turn off ajax loading, which is great - but if anyone can help me rewrite the script so it works with Ajax that would be amazing! Link to comment
SpencerC Posted November 12, 2020 Share Posted November 12, 2020 Hi @Skwolven, As mentioned in my reply to your other post, it may not be possible to ever get a code customisation working while Ajax loading is enabled. Let me know if you've any questions. Skwolven 1 SPENCER CHRISTIECUSTOMER OPERATIONS ADVISORHE/HIM Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment