Jump to content

Blog page pagination links?

Recommended Posts

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
  • Replies 2
  • Views 289
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.