Archived topic
Two questions about styling
5 replies · Started by Nenad on March 26, 2022
Hello,
1. Can you explain me or send me some resources so I can learn how to style previous and next blog post buttons bellow any blog post?
2. Also, how to create page buttons 1, 2, 3 , 4 on blog category?
I do not want infinitive scroll, I want next page and 12 blog posts per page.
Thanks a lot,
Nenad
Hi Nenad,
1. You can use a block element - post navigation to create your own post navigation, the documentation and video below should be helpful:
https://docs.generatepress.com/article/block-element-post-navigation/
2. The pagination on blog or archive page should be generated automatically, you won't need to activate it.
You can deactivate the infinite scroll at customizer > layout > blog.
To have 12 blog posts per page, you can set the value at settings > reading.
Ying, thanks for the link, that is exactly what I needed.
About the second question. I have 8 blog posts, but no pagination. What is the default, can I change it to like 6 posts per page?
I would like to ask you one more thing.
After the blog post, I would also like to have SIMILAR POSTS or RECOMMENDED POSTS.
What is the right way to do this? Should I create block with image and text each time, or there is a better way to handle this?
Just to show you what I mean, link
What is the default, can I change it to like 6 posts per page?
You can check and change your setting at settings > readings.
The pagination shows only if you have more posts than the value you set.
After the blog post, I would also like to have SIMILAR POSTS or RECOMMENDED POSTS.
There're some plugins which generate posts list like those.
It depends on the plugin. If the plugin generates a set of shortcode, you can add the shortcode to a block element, set the the element type to hook, choose after_main_contentas hook name, choose blogas location.
Thank you Ying, it works.
You are welcome :)