• Resolved Adam Kupis

    (@adamus)


    I was looking for this information everywhere, but I could not find it. How to extend the range of displayed pages with entries on the main page and subsequent subpages with a list of posts. In the theme that I use, there is enough space to have 4 page numbers before in the middle of the three-point “…” and again 4 numbers after. In the meantime, only two pages are shown, three pages and again two pages. Why? How can you modify it? I’ve already searched the template for “Twenty Seventeen” functions.php and navigational files, but I could not find anywhere.
    screenshot
    Cheers
    Adam

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Adam Kupis

    (@adamus)

    Thanks for reply, but I think I have on mind something slightly different:

    “The number of links to always show at beginning and end of pagination.”

    So in the screenshot what I attach in first post you can see two numbers page before “…” and one at end. I want to extend that range double, and without install some huge plugin. I know there is some one small function in code witch I need to change to get this effect, but I can’t find that.

    Cheers
    Adam

    • This reply was modified 6 years, 8 months ago by Adam Kupis.
    • This reply was modified 6 years, 8 months ago by Adam Kupis.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think you can override the ‘index.php’ template inside your Child Theme and change the the_posts_pagination function call.

    https://themes.svn.www.ads-software.com/twentyseventeen/1.4/index.php

    Thread Starter Adam Kupis

    (@adamus)

    THX for help, I found this. Just add the function:
    'mid_size' => 2,
    after
    <?php the_posts_pagination( array(
    with the number that interests us.

    Problem solved
    Cheers
    Adam

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to extend number of pages on homepage?’ is closed to new replies.