Jump to content

How to exclude post in summary block post?

Go to solution Solved by Ziggy,

Recommended Posts

Hi, I am new here,

I would love to ask someone for help please. 

 

I am trying to exclude a first post in summary block on my home page.

 

I am trying this code but nothing is happening. Not really sure why.

 

.blog-basic-grid article:first-child { display:none; }

or should I target the ID of the block instead? Like

 

#block-65c0ae38a31e4103295bc1e2 {
.blog-basic-grid article:first-child { display:none; }
  }

 

Thank you!

Link to comment
  • Replies 5
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Can you share your website URL and the page you want this to apply to?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Try this Custom CSS:

section[data-section-id="65c0ae38487ca123bde1eeec"] {
  .sqs-block-summary-v2 .summary-item:nth-child(1) {
    display: none;
  }
}

The code you were quoting was not relating to a summary block but a blog page.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Thank you, it works except what I am trying to do is to setup different summary block on the top of this one and in this one I want to prevent the same post of showing up.

Now when I use your code it removes posts also from the new summary.

 

I tried to target the second summary block using this code, but it just doesn't work.

 

#block-65c0ae38a31e4103295bc1e2 {
  section[data-section-id="65c0ae38487ca123bde1eeec"] {
    .sqs-block-summary-v2 .summary-item:nth-child(1) {
      display: none;
    }
  }
  }

Thanks for help

Link to comment

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.