Jump to content

Customize Pagination on One Blog

Recommended Posts

Site URL: https://www.vancouverpride.ca/performers-draft?rq=performers-draft

There are 2 blog pages on my client's website; one is a typical blog ("Blog A"), whereas the other one is being used to display performers ("Blog B"). I would like to change the pagination on Blog B without it affecting Blog A. Currently, the pagination on both blogs read as "Older Posts" and "Newer Posts", and I would like the pagination on Blog B to instead read as "View More Performers" or simply note the page number. How do I code this?

Link to Performer Blog "Blog B": https://www.vancouverpride.ca/performers-draft?rq=performers-draft

Link to comment
  • Replies 7
  • Views 372
  • Created
  • Last Reply

Top Posters In This Topic

Yes, although I'm realizing that might be a bit confusing to keep track of pages as the performers list grows over time. Alternatively, it might be better to change the pagination to "Next Page" and "Previous Page" across all blogs. Are you able to help with that instead?

Link to comment
On 9/21/2024 at 1:07 AM, tobineliasart said:

Yes, although I'm realizing that might be a bit confusing to keep track of pages as the performers list grows over time. Alternatively, it might be better to change the pagination to "Next Page" and "Previous Page" across all blogs. Are you able to help with that instead?

You can use this to Website Tools > Custom CSS

/* blog pagination */
.item-pagination[data-collection-type^="blog"] h2 {
    visibility: hidden;
}
a.item-pagination-link.item-pagination-link--next h2:after {
    content: "next page";
    visibility: visible;
}
.item-pagination-link--prev h2:before {
    content: "prevous page";
    visibility: visible;
}

image.thumb.png.6c4aea50aa1d233992df5018f9a5ba62.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
11 hours ago, tuanphan said:

You can use this to Website Tools > Custom CSS

/* blog pagination */
.item-pagination[data-collection-type^="blog"] h2 {
    visibility: hidden;
}
a.item-pagination-link.item-pagination-link--next h2:after {
    content: "next page";
    visibility: visible;
}
.item-pagination-link--prev h2:before {
    content: "prevous page";
    visibility: visible;
}

image.thumb.png.6c4aea50aa1d233992df5018f9a5ba62.png

This worked on the blog post pages, but I'd like to do this on the overall blog page that lists all of the blog posts.

Link to comment
On 9/26/2024 at 12:46 AM, tobineliasart said:

Apologies, things have been changing around quickly on the site to get pages published. Here is the new link: https://www.vancouverpride.ca/performers?rq=performers

Here is the area I'm referring to that I would like to change the pagination for:Screenshot2024-09-25at10_42_00AM.thumb.png.c9df492f3b031e6b7958256b8c6564c9.png

Use CSS code like this

span.next-label {
    font-size: 0;
}
span.next-label:before {
    content: "previous page";
    font-size: 16px;
}
span.prev-label {
    font-size: 0;
}
span.prev-label:before {
    content: "next page";
    font-size: 16px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.