Jump to content

Change "older posts" text to "more artists"

Recommended Posts

  • Replies 4
  • Views 976
  • Created
  • Last Reply

@Mondq You can add the following JS below. You can update the nextLabelText and prevLabelText values based on your needs. :

(function(document){
  
  var nextLabelText = 'Older posts to more artists';
  var prevLabelText = 'Newer posts to more artists';

  /**************************************************************************
   * DO NOT EDIT CODE BELOW, unless you know what your doing.
   ***************************************************************************/

  // Initialized code depending on if the user places it in the header or footer
  if(document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', init);
  } else {
    init();
  }

  function init(){
    var prev = document.querySelector('.blog-list-pagination .prev-label');
    var next = document.querySelector('.blog-list-pagination .next-label');

    if(next){
      next.textContent = nextLabelText
    }

    if(prev) {
      prev.textContent = prevLabelText;
    }
  }

})(document);

Make sure this code is between <script> tags, example:

<script>
  // js code goes here
</script>

 

Full stack developer who loves helping people out with anything web related. If you'd like to support me, buy me a coffee!

Link to comment

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.