Home › Forums › WordPress Themes – Premium › Pure & Simple › Create pagination
Is it possible to change “older posts” and “newer posts” into a pagination, as in your theme Sleeky and how can I realize that?
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
Hello,
thanks for the info, I will try it.
Great Hemen
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.