Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Adi Azudin

    (@adiazudin)

    I highlight the red area. My site is here.

    I don’t see the problem. The reason it a different color is because it has been selected and is the active link.
    If you select 3 it will change to gray also.

    Thread Starter Adi Azudin

    (@adiazudin)

    I’m not talk about hover or link style. I talk about blank area there. It’s so wide, different than page 1.

    Thread Starter Adi Azudin

    (@adiazudin)

    This for comparison: Here.

    Thread Starter Adi Azudin

    (@adiazudin)

    I try to remove Index.php for a while from my Child Theme. I wanna see the result. My current Index.php in Child Theme have lots of customization.

    Thread Starter Adi Azudin

    (@adiazudin)

    Done tested, same result.

    Hi Adi. It’s because the pagination is placed right under the posts but the content area extends down as far as the end of the sidebar. Since you have different widgets in the sidebars on different pages, the sidebar lengths are different, so the space below the pagination varies.

    Thread Starter Adi Azudin

    (@adiazudin)

    After I notice this problem today, I also tested to point back everything to parent theme, the result also same. Now, I play with .wp-pagenavi setting, try to solve that and put page navigation placement static in the bottom.

    Thread Starter Adi Azudin

    (@adiazudin)

    @bdbrown, your answer is correct, because of sidebar lengths. If I remove some widget on sidebar (sidebar shorter than post list), the pagination will appear exactly in the bottom.

    Any other way or format to always make pagination stick on bottom? So, we can freely ignore sidebar lengths.

    There is probably more than one way to do this but here’s what I’ve come up with. Since you want to position the pagination at the bottom of the content area, but you don’t know where that will be on any given page, you need to position the pagination relative to the larger content area container. That means removing the pagination line from index.php (and maybe also archive.php and search.php) and then adding it inside one of the closing </div> tags (doesn’t matter which one) at the top of footer.php. Then you can position it on the page just above the footer using this:

    .pagination.group {
      position: relative;
      bottom: 50px;
      right: 300px;
    }

    This assumes you have the 2-sidebar content-left layout on the home, archive and search pages. If you change that then you may need to adjust the “right” property.
    Since the pagination is now in the footer, it will be displayed on every page unless you turn it off. You could probably turn if off globally using this:

    .pagination.group, {
      display: none;
    }

    and then display it on specific pages using this:

    .home .pagination.group,
    .archive .pagination.group,
    .search .pagination.group {
      position: relative;
      bottom: 50px;
      right: 300px;
    }

    I haven’t actually tested this other than using Developer Tools to move elements around in the DOM and add some css. But I think, at least in theory, it should work. You might ask yourself why you want to do this before going through all this work. Let me know if you want to have an offline discussion on that and I’ll get in touch.

    Thread Starter Adi Azudin

    (@adiazudin)

    Thanks @bdbrown for clear explaination.

    Hi Adi. Were you able to get this resolved or are you still looking for additional input?

    Thread Starter Adi Azudin

    (@adiazudin)

    I will try this on demo site.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘My pagination have some problem now.’ is closed to new replies.