Buy me a coffee

Blog Post Pagination: 3 Arrows

Description: Replace  Pagination with 3 Arrows

  • Left Arrow: Previous Post
  • Right Arrow: Next Post
  • Middle Arrow: Back to top

pagination-3-arrows-min

First, add this code to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($) { 
   $('<a href="#top" class="item-pagination-icon icon icon--stroke"><svg class="caret-right-icon--small" viewBox="0 0 9 16"><polyline fill="none" stroke-miterlimit="10" points="1.6,1.2 6.5,7.9 1.6,14.7"></polyline></svg></a>').appendTo('.item-pagination[data-collection-type^="blog"]');
 });
</script>

settings-code-injection-min

Next, add this code to Design > Custom CSS

/* Pagination Custom Style */
/* move middle arrow to between pagination */
a.item-pagination-icon[href="#top"] {
    order: 2 !important;
}
a.item-pagination-link.item-pagination-link--next {
    order: 3;
}
/* middle arrow size */
a.item-pagination-icon[href="#top"] svg {
    width: 18px;
    height: 32px;
    transform: rotate(-90deg);
}
/* hide pagination text */
.item-pagination[data-collection-type^="blog"] .pagination-title-wrapper {
    display: none;
}
/* Fixed 3 arrows at bottom of screen */
.item-pagination[data-collection-type^="blog"] [class*="--prev"] {
    position: fixed;
    left: 3vw;
    bottom: 3vw;
    z-index: 9999;
}
.item-pagination[data-collection-type^="blog"] [class*="--next"] {
    position: fixed;
    right: 3vw;
    bottom: 3vw;
    z-index: 9999;
}
.item-pagination[data-collection-type^="blog"] a[href="#top"] {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3vw;
    z-index: 99999;
}

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to: https://beaverhero.com/squarespace-how-to/
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder