Hide posts from home page
-
I run a school website and I want to stop certain posts showing on the home page. For example, I want the kids to be able to post things with their work but if they did it would clog up the home page and the important posts for the parents would get buried.
How can I set a category (i.e. Blog) so that it doesn’t show on the homepage but will be available if they click on the category link?
The blog I need help with is: (visible only to logged in users)
-
Hi there, this can be done. What we would have to do is to hide “blog” categorized posts from the main page by using the “home” class from the main page and then the category class from the posts. This would be the CSS. Go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.
.home .hentry.category-blog { display: none; }I would suggest creating a test post set to the “blog” category and then publish it. With the above CSS it should not appear on the main page. What MAY happen though is that there may be gaps that occur where those “blog” categorized posts would normally occur within the grid of posts. Give it a try and let me know. I don’t think this will occur with Fontfolio theme, but test just to make sure.
-
-
- The topic ‘Hide posts from home page’ is closed to new replies.