Guest2020 Posted January 22, 2021 Share Posted January 22, 2021 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 the user is currently reading. Thank you! BigDayOne, rachelr and emalu 3 Link to comment
ievavi Posted February 6, 2021 Share Posted February 6, 2021 Have the same question! Anybody? Guest2020 and rachelr 2 Link to comment
rachelr Posted February 9, 2021 Share Posted February 9, 2021 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-cheeses ievavi and Guest2020 2 Link to comment
derricksrandomviews Posted February 9, 2021 Share Posted February 9, 2021 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; } rachelr 1 Link to comment
rachelr Posted February 9, 2021 Share Posted February 9, 2021 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. Guest2020 1 Link to comment
Guest2020 Posted February 10, 2021 Author Share Posted February 10, 2021 Thank you so much for your help! Does this mean I would have to do the same thing with different block IDs or each of my blog posts? 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