Site logo

[Support request] previous/next instead of numbers on blog archive pages?

Home Forums Support [Support request] previous/next instead of numbers on blog archive pages?

Home Forums Support previous/next instead of numbers on blog archive pages?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2583462
    Ryan

    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.

    #2583473
    Fernando
    Customer Support

    Hi Ryan,

    By default, there should be Previous and Next buttons for the Blog page.

    For reference, can you provide the link to your Blog page?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2583483
    Ryan

    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

    #2583501
    Fernando
    Customer Support

    This is what I’m seeing: https://share.getcloudapp.com/OAuogA8r

    This is page 2.

    Are you seeing the same thing?

    #2583519
    Ryan

    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

    #2583548
    Fernando
    Customer Support

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

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

    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.

    #2583594
    Fernando
    Customer Support

    I see. Try this instead:

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

    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…

    #2584524
    Ying
    Staff
    Customer Support

    How can I get it to say next and previous page?

    The simplest way is to create a block element – post navigation.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.