tuanphan Posted August 28 Share Posted August 28 If code doesn't work, you can send blog page url + exact code you added, I will check again. You can follow these steps to exclude a category of posts from showing on the main blog page. #0. Suppose you have a blog category: Bike, you want to hide all posts belong this category on main blog page. #1. Edit all posts belong the category: Bike #2. Edit Excerpt > Enter text: bike Highlight it and add URL: #bike #3. Find Main Blog Page ID. Use below tool. In my example, it is: #collection-6677756d03a4f15ba27ce9d8 #4. Use this code to Custom CSS box #collection-6677756d03a4f15ba27ce9d8 { article.blog-item [href="#bike"] { display: none; } article.blog-item:has([href="#bike"]) { display: none; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment