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

Hide current post from the summary block


ievavi

Question

Site URL: https://ievaviphoto.com/

Hi, all!
Been searching for an answer to this question for a few weeks now and hoping to finally find one here 🙂 Does anyone know how to hide the current post from the summary block? Maybe @bangank36  @tuanphan
 would have some insight to this?


To give you a concrete example, I would like to hide Nyhavn Intimate Wedding w/ C + C from the summary block and, instead, display the other post with the relevant category / tag.

The link:
https://ievaviphoto.com/stories/nyhavn-alternative-wedding

*P.S. I only found a way to hide a current post but then my summary block consists of one post. The code for this:
sqs-active-slide {
display:none!important;
}

Thanks a lot!!
/ ieva
Link to post
  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Thank you, that works brilliantly hiding the current post! But may I know how to still display 2 posts instead of one (they are categorised by the tags)?

Posted Images

8 answers to this question

Recommended Posts

  • 0

Hi. There is no automatic way to do this.

However if you want this to be applicable only on a few pages, we can use manual CSS. That is, you need to hide on any page, you will insert code on that page. If you have 10 pages, you will insert the code into 10 pages.

If you want this, we will give the code.

Link to post
  • 0
On 2/28/2021 at 2:44 PM, tuanphan said:

Hi. There is no automatic way to do this.

However if you want this to be applicable only on a few pages, we can use manual CSS. That is, you need to hide on any page, you will insert code on that page. If you have 10 pages, you will insert the code into 10 pages.

If you want this, we will give the code.

Hey hey! That would be very much appreciated 🙂

Link to post
  • 0
On 3/5/2021 at 6:51 AM, ievavi said:

Hey hey! That would be very much appreciated 🙂

Edit Nyhavn post >> Add a Code Block >> Paste this code

<style>
  .summary-item-list .summary-item:nth-child(1) {
    display: none;
}
</style>

 

Link to post
  • 0
1 hour ago, tuanphan said:

Edit Nyhavn post >> Add a Code Block >> Paste this code


<style>
  .summary-item-list .summary-item:nth-child(1) {
    display: none;
}
</style>

 

Thank you, that works brilliantly hiding the current post! But may I know how to still display 2 posts instead of one (they are categorised by the tags)?

Link to post
  • 0
31 minutes ago, ievavi said:

Thank you, that works brilliantly hiding the current post! But may I know how to still display 2 posts instead of one (they are categorised by the tags)?

You may want to increase the number of post in summary block?

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Animated Heading Block
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post
  • 0
3 hours ago, bangank36 said:

You may want to increase the number of post in summary block?

That would be one of the solutions, however I have another problem - alignment (I want to be it centered). As you will see there is no space in between when the screen size is small. May I receive some help?

The code I used for summary block:
 

.sqs-block-summary-v2 .summary-item-list {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

The page: https://ievaviphoto.com/stories/east-london-wedding (very bottom)

Thanks a lot for your kind support!

Screenshot 2021-03-07 at 13.22.13.png

Link to post
  • 0
On 3/7/2021 at 7:24 PM, ievavi said:

That would be one of the solutions, however I have another problem - alignment (I want to be it centered). As you will see there is no space in between when the screen size is small. May I receive some help?

The code I used for summary block:
 

.sqs-block-summary-v2 .summary-item-list {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

The page: https://ievaviphoto.com/stories/east-london-wedding (very bottom)

Thanks a lot for your kind support!

Screenshot 2021-03-07 at 13.22.13.png

Do you still need help? Center summary or center title/description?

Link to post
  • 0
Posted (edited)
6 minutes ago, tuanphan said:

Do you still need help? Center summary or center title/description?

Yes, please! I would need help making the summary block thumbnails bigger + add that space in between the images on smaller screen (mobile, tablet). As you can see in the attached image they merge into one.


Example post: https://ievaviphoto.com/stories/east-london-wedding

Thank you loads!

With regards to centering, I needed some help making the contents inside the summary block themselves to be centered (not the title or description and for this, I used the code below). So I think It's sorted - just the thumbnails are very small now, therefore I would need some further help.

.sqs-block-summary-v2 .summary-item-list {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

Edited by ievavi
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...