Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Blog page pagination links?


Skwolven

Question

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 post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

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.

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...