Archived topic
Pagination
7 replies · Started by Michael on April 14, 2020
Hello...
My question is regarding pagination.
I set my blog pages to have 6 posts per page with newest posts on first page.
Over time, I have multiple pages of posts with the pagination at the bottom of the blog showing numbers...
1,2,3
What can I do so that it doesn't default to numbers but rather shows...
<Older posts Newer posts>
Is there a simple toggle either in WP-Admin or Generate Press options? Or do I need to install code?
Thank you!
Hi there,
Give this CSS a shot:
.nav-links {
display: none;
}
.paging-navigation .nav-previous,
.paging-navigation .nav-next {
display: block;
}
Hi!
The CSS code helps a lot - thank you!
Just a follow up question....
So is there a way to do it so that the "older posts" and "newer posts" both show on one line.
After entering the code, "older posts" is on the first line and "newer posts" on the next line. (I left the code intact so if you go to my site you can see for yourself what I mean :) )
CSS is not my strong suit so any help is greatly appreciated! Thank you!
In that case, I would use this CSS instead:
.page-numbers:not(.next):not(.prev) {
display: none;
}
.nav-links {
display: flex;
justify-content: space-between;
}
Thank you! It works.
I appreciate all of your support!
Glad I could help :)
Can u guys help me here to add pagination in my website please ?
Hi there,
i replied directly to your topic:
https://generatepress.com/forums/topic/how-to-do-pagination-in-my-posts/