Main page only 1 post
-
Hi,
I am trying to figure out how to make the main page (page you see when you open the blog) of my wordpress to show only my latest post that I have done, but have the categories that they are categorized under show all the posts. I know I can limit it to 1 post on the settings, but then that does that for everything.
Does anyone know how I can do that? Or a CSS code that I could use?
Any help is appreciated!
The blog I need help with is: (visible only to logged in users)
-
HI there,
You should be able to do this if you edit CSS. Please go to Appearance > Customize > CSS and try adding this:
.home article.post:not(:first-child) { display: none; }That should just leave the latest post and remove the rest on the Home page.
Let me know if you have any questions with this!
-
-
- The topic ‘Main page only 1 post’ is closed to new replies.