Jump to content

Don't show current blog post in summary block

Recommended Posts

Site URL: https://tomato-hibiscus-5kcf.squarespace.com/stories/born-to-lead

Hello! I would like to include a summary block on my blog posts that links to "Related Stories"  I can't seem to find a way to remove the current blog post from the summary  block. I've tried some codes that I've found here, changing categories around etc, but none have worked for me. There are hundreds of stories and blog posts to transfer over so it would be very helpful if it was site-wide. Why this isn't an option from Squarespace, I don't know...Can anyone help me out? @tuanphan

https://tomato-hibiscus-5kcf.squarespace.com/stories/born-to-lead

password: Magnolia

Link to comment

This has come up before and so far there is no one who has come up with a great way to hide the current blog post in a summary block, that may be due to the fact that when chosen it navigates away from the page the block is on, unlike an index page which keeps the thumbnails at the bottom of the same page where the index item takes you. As a matter of fact Avenue, the template that I use, has the hide active item as an option by default.  

This code has been tried by some, but it didn't have a lot of accolades. It might work for you.  It goes into custom css. 

.collection-type-blog.view-item .summary-item-list .sqs-active-slide {
    display: none;
}

 

Edited by derricksrandomviews
Link to comment
  • 3 weeks later...
  • 2 months later...
  • 1 year later...
  • 4 months later...
  • 2 weeks later...
On 5/21/2023 at 5:15 AM, jake98 said:

@RyanDejaegher Thanks so much for this code above...

 

it works for me on individual blog posts but not on the home page of my site. (www.readalmostfamous.com)

 

could you help with this please?

 

best wishes 

With homepage, try adding this to Design > Custom CSS

div#block-yui_3_17_2_1_1683917161417_33080 .summary-item:first-child {
    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
On 6/1/2023 at 8:41 PM, jake98 said:

@tuanphan it didnt work - please look at site for reference. i would also need this to work all the way down the site as each section would be similar layout 

thanks as always!

That code will remove First Item from Summary in Music News section

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

is it possible to get code to do this for all the sections on the homepage? i dont plan to add anymore sections to the homepage.

also, it removes it, but it doest push up another article it just shows a blank space.

 

thanks as always for your 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.