[Resolved] Change the dots between page numbers on the blog archive to show all pages

Home Forums Support [Resolved] Change the dots between page numbers on the blog archive to show all pages

Home Forums Support Change the dots between page numbers on the blog archive to show all pages

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1371250
    Jared

    On my blog archive page it looks like this:

    ← Previous 1 … 3 4 5 Next →

    Is there any way to remove the dots, showing all page numbers instead?

    Trying for this:

    ← Previous 1 2 3 4 5 Next →

    Kind regards

    #1371282
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    Hoping that we could use a CSS solution for this.

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #1371283
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    Hoping that we could use a CSS solution for this.

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #1371300
    Jared

    Hi Leo,

    Thanks for helping me.

    Sure, I’ve added the site.

    #1371303
    Leo
    Staff
    Customer Support

    Can you try adding this CSS:

    .page-numbers.dots {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Then add this PHP:

    add_filter( 'generate_pagination_mid_size','tu_increase_pagination_numbers' );
    function tu_increase_pagination_numbers() {
        return 50;
    }

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

    #1371317
    Jared

    Great that worked!

    I added the CSS and used code snippets to add the PHP.

    Thanks a lot, much appreciated.

    Kind regards,
    Jared

    #1371325
    Leo
    Staff
    Customer Support

    No problem 🙂

    Just to mention that you will need to increase the 50 in the PHP snippet once you have 50+ pages.

    #1371328
    Jared

    Great to know, I’ll bookmark this page for reference.

    Thanks again!

    #1371335
    Leo
    Staff
    Customer Support

    No problem 🙂

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