StyledThemes

Create pagination

Home Forums WordPress Themes – Premium Pure & Simple Create pagination

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40070
    Hemen
    Participant

    Is it possible to change “older posts” and “newer posts” into a pagination, as in your theme Sleeky and how can I realize that?

    #40097
    Sushil Adhikari
    Moderator

    Hi Hemen,

    Of course you can do this, but you have to be technically sound on WordPress. As this task required customization.

    Here we will give tips on how to do.

    You have to overwrite puresimple_paging_nav() of parent theme on child theme functions.php file. And use the_posts_pagination() function . This function is used by twentysixteen theme you can see on index.php template .

    Here is the example

    ` // Previous/next page navigation.
    the_posts_pagination( array(
    ‘prev_text’ => __( ‘Previous page’, ‘twentysixteen’ ),
    ‘next_text’ => __( ‘Next page’, ‘twentysixteen’ ),
    ‘before_page_number’ => ‘‘ . __( ‘Page’, ‘twentysixteen’ ) . ‘ ‘,
    ) );`

    Note: Design may look ugly so you have to do some tweak there.

    Thanks

    #40147
    Hemen
    Participant

    Hello,

    thanks for the info, I will try it.

    #40253
    Sushil Adhikari
    Moderator

    Great Hemen

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