Site logo

[Support request] Customizing Pagination

Home Forums Support [Support request] Customizing Pagination

Home Forums Support Customizing Pagination

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #337973
    Dilip Kumar

    Hi,

    I am looking to customize the pagination on my blog. I want to remove the 1,2,3…. pagination and replace it with just “read the next post”.
    How can I do it?
    Is it possible to show something like “Show all Posts” and link it to the archives page?

    Regards
    Dilip

    #338010
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    .paging-navigation .nav-next, 
    .paging-navigation .nav-previous {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    #338064
    Dilip Kumar

    That seems to have worked to some extent. But how do I add something like “Show all Posts” and link it to the archives page, if it is possible..

    #338227
    Tom
    Lead Developer
    Lead Developer

    What page would be the “archives” page?

    #338628
    Dilip Kumar

    I have created an archives page which has a list of all the posts. This is the one I want to link to.

    #338914
    Tom
    Lead Developer
    Lead Developer

    Try this:

    add_action( 'generate_paging_navigation', 'tu_add_pagination_archives_link' );
    function tu_add_pagination_archives_link() {
    ?>
        <a href="YOUR URL HERE">Your link text</a>
    <?php
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

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