Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hiding the current blog post in the summary block


Guest2020

Question

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Site URL: https://www.cuisinesteam.ca/blog Hello, Is there any way to hide the current post in the summary block? I want to show related posts on my blog, but I’d like to exclude the post that

Have the same question! Anybody?

Same question from me! I've read through everything I can find and no luck. Here's an example from my site too in case anyone can help!  https://www.fridgeprep.com/blog/exploring-the-best-vegan-c

5 answers to this question

Recommended Posts

  • 0

I too have asked this, thinking I could make it behave like an an index page on my Avenue  site. Avenue index pages hide the thumbnail of the active page, but a summary doesn't really display like that, when reading a post it takes the full screen,  no summary items are displayed along with the post at the same time on the same page. So in effect you are not asking for the active one but the last one if you think about it. 

Some folks have done that, but it will leave and empty space and you will need to id the blocks to target the code and it also depends on the layout and how many summary blocks you have. I have not tried this on my site so you will be experimenting . Here is the link to the Chrome block identifier extension: https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde?hl=en-US

 

Here is the code. 

#block-yui_3_17_2_1_1594082530518_15247

.summary-item:nth-child(1) {

  display: none;

}

#block-yui_3_17_2_1_1594082530518_15247
.sqs-active-slide  {
  display:none!important;
}

Link to post
  • 0
8 hours ago, derricksrandomviews said:

I too have asked this, thinking I could make it behave like an an index page on my Avenue  site. Avenue index pages hide the thumbnail of the active page, but a summary doesn't really display like that, when reading a post it takes the full screen,  no summary items are displayed along with the post at the same time on the same page. So in effect you are not asking for the active one but the last one if you think about it. 

Some folks have done that, but it will leave and empty space and you will need to id the blocks to target the code and it also depends on the layout and how many summary blocks you have. I have not tried this on my site so you will be experimenting . Here is the link to the Chrome block identifier extension: https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde?hl=en-US

 

Here is the code. 

#block-yui_3_17_2_1_1594082530518_15247

.summary-item:nth-child(1) {

  display: none;

}

#block-yui_3_17_2_1_1594082530518_15247
.sqs-active-slide  {
  display:none!important;
}

Thanks for this! Appreciate you taking the time to write this response.

I couldn't quite get it to work, but I figured out another (tedious) solution. For each blog post (thankfully I only have a few so far), I add tags with the name of every other blog post. For example, if I have a post on "How to Meal Prep", on every post except the one titled "How to Meal Prep" I add a tag with that title. Then, on the summary block for the How to Meal Prep post I click that tag, and it shows every other post and not the current one (since I didn't tag it). Not the best solution, but posting in case it can help anyone else. 

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...