Jump to content

Change "older posts" text to "more artists"

Recommended Posts

@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>

 

Edited by jpeter
Link to comment

Create an account or sign in to comment

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

×
×
  • 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.