[Resolved] Pagination button spacing issues

Home Forums Support [Resolved] Pagination button spacing issues

Home Forums Support Pagination button spacing issues

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1370185
    Hemant

    Hello Team,

    I am having issues with pagination.

    Earlier I had raised concerns here:https://generatepress.com/forums/topic/help-with-css-next-previous-page-button/

    Now the question is I have managed to get the pagination button and the spacing.. But when I check in mobile… It’s almost like buttons are crashing each other and the display is messed up.. You can check this url..

    https://fatlossplanner.com/workout-plans-for-weight-loss/2/

    Try to open it via cell phone..

    Worst case, if the buttons can’t be aligned can we achieve something similar to below:
    https://www3.forbes.com/business/best-places-to-retire-in-each-state-2018-vue/4/

    Like how they have Continue button and nothing else…

    Regards
    Hemant s

    #1370423
    David
    Staff
    Customer Support

    Hi there,

    in your filter PHP Snippet – change this line:

    $args['before'] = '<p style="text-align: center;">';

    to:

    $args['before'] = '<p class="custom-next-previous" style="text-align: center;">';

    Then add this CSS:

    .custom-next-previous {
        text-align: center;
    }
    @media(max-width: 420px) {
        .custom-next-previous {
            margin-left: -20px;
            margin-right: -20px;
        }
    }
    #1370718
    Hemant

    Works like charm… )

    #1370726
    David
    Staff
    Customer Support

    Glad to hear that

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