[Resolved] Pagnination style

Home Forums Support [Resolved] Pagnination style

Home Forums Support Pagnination style

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2060426
    Nico

    Hi There!

    Does Generate Press Theme offer the option of setting the pagination style as we did with our old theme? See footer of the respective links.

    Thnx for the help and
    best regards from Germany
    Nick

    #2060442
    David
    Staff
    Customer Support

    Hi there,

    1. Add the following PHP Snippets to change the Next and Previous text:

    add_filter( 'generate_next_link_text', function() {
        return '>>';
    } );
    add_filter( 'generate_previous_link_text', function() {
        return '<<';
    } );
    

    You can return whatever characters/html symbol you want for the,.

    2. add this CSS:

    .paging-navigation .nav-links {
        display: flex;
    }
    .paging-navigation .nav-links .page-numbers {
        display: block;
        min-width: 40px;
        line-height: 40px;
        text-align: center;
        background-color: #f5f5f5;
        margin-right: 5px;
        font-weight: bold;
    }
    .paging-navigation .nav-links a:hover,
    .paging-navigation .nav-links .current {
        background-color: #00a1b7;
        color: #fff;
    }
    #2060457
    Nico

    @david

    Snippet is working. Looks great. Thnx David 😃

    #2060482
    David
    Staff
    Customer Support

    You’re welcome

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