Jump to content

[Share] How to hide a blog post

Recommended Posts

Suppose you have this blog page and you want to hide blog item 3 and 4 (screenshot)

image.png.4d21d454a554a7055c8ca11f1c381a86.png

You can follow these steps.

If you can't make it work, you can send link to blog page + let me know which items you want to hide, I will check it again.

#1. First, hover on blog post that you want to hide, click 3 dots > Settings

image.thumb.png.15a3215b38ae785e87f103f374f01d0f.png

and see Post URL

image.png.30fa05d76853021ce28143d815e3d1c6.png

In my example, we will have:

  • /blog-2-1/blog-post-title-two-km9nm
  • /blog-2-1/blog-post-title-three-3w5th

image.png.e26606fb85aa405b0eb2a08d70bcf8f3.png

#2. Use this code to Custom CSS box

article.blog-item:has([href="/blog-2-1/blog-post-title-two-km9nm"]) {
    display: none;
}
article.blog-item:has([href="/blog-2-1/blog-post-title-three-3w5th"]) {
    display: none;
}

or you can combine both

article.blog-item:has([href="/blog-2-1/blog-post-title-two-km9nm"]), article.blog-item:has([href="/blog-2-1/blog-post-title-three-3w5th"]) {
    display: none;
}

image.png.e911a9ae5402289c909016ba5fdba197.png

#3. Result

image.png.04656ba8041c7799cd5bc830cebaf1e2.png

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
  • Replies 0
  • Views 237
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.