Site logo

Archived topic

previous/next instead of numbers on blog archive pages?

9 replies · Started by Ryan on March 26, 2023

Viewing posts 1–10 of 10

Is there a way to on blog archive pages, change the pagination links on the bottom from listing page numbers, and have it just say "previous" and "next"?
Thank you.

See how it says page 1 of 662 at the end of each page? How can I get it to say next and previous page? Url is below. Thanks

Yes i am seeing the same thing. I do not want it to display those page numbers. I definitely don't want it to show page 662. Would like to just say next page or list recent pages, but not the very last page from years ago

I see. Try adding this through Appearance > Customize > Additional CSS:

.nav-links :is(.page-numbers,.current):not(.next,.prev) {
    display: none;
}

But I would like them to display, I just dont wamt to go as far back as the very last page number.if it could say, previous, 2, 3, 4... next or similar, just without a link to page 662.

I see. Try this instead:

.nav-links :is(.page-numbers:nth-last-child(2),.dots) {
    display: none;
}

Thank you. But is there a way to hide it with a PHP function of some sort? I don't want the link to page 662 to be visible, even to search engine spiders. Problem is, crawlers will still see the link to the very last, oldest page and I don't want to make it seem like I am deceptively hiding the link...

This archived topic is closed to new replies.