- This topic has 1 reply, 2 voices, and was last updated 3 years, 1 month ago by
Theme Horse Support Team.
-
AuthorPosts
-
July 15, 2021 at 6:32 am #90448
David Humphreys
ParticipantHi 🙂
On my website, http://www.birkenhead.news in the second section down, i have TH: Recent posts
Is there a way to exclude the most recent post in just this block? (To avoid repeating the featured post at the top of the page)
Thanks
July 18, 2021 at 2:45 pm #90533Theme Horse Support Team
KeymasterHi David Humphreys,
The Recent Post itself denotes as the latest post that you create. so it has not option to control the post to show. But we can provide you the Custom CSS code to hide some of the post from that widget.
please go to ‘Appearance > Customize > Additional CSS’ and paste the below custom CSS code.
1- if you want same changes for all the TH-Recent Post Widgets that you use on your entire Site then paste Below code.
.newscard-widget-recent-posts .post-col:nth-child(1), .newscard-widget-recent-posts .post-col:nth-child(2) { display: none; }
2- if you want changes only on TH-Recent Post Widgets that you mention and works normally for same widgets on other section then paste below code.
#newscard_recent_posts-6.newscard-widget-recent-posts .post-col:nth-child(1), #newscard_recent_posts-6.newscard-widget-recent-posts .post-col:nth-child(2) { display: none; }
Note: We have provided code just to hide the first 2 post from latest posts. You can increase or decrease the number of post to hide the respective posts following the same line of code format followed by ‘nth-child(3), nth-child(4), so on. Make sure you give comma sign (,) at the end of every line of code except the last line of code. Comma sign (,) is not needed if you make only single line of code.
Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.