ievavi Posted February 23, 2021 Share Posted February 23, 2021 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 comment
tuanphan Posted February 28, 2021 Share Posted February 28, 2021 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. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ievavi Posted March 4, 2021 Author Share Posted March 4, 2021 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 comment
tuanphan Posted March 7, 2021 Share Posted March 7, 2021 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> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ievavi Posted March 7, 2021 Author Share Posted March 7, 2021 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)? JamIsJam88 and Beyondspace 2 Link to comment
Beyondspace Posted March 7, 2021 Share Posted March 7, 2021 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? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
ievavi Posted March 7, 2021 Author Share Posted March 7, 2021 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! Link to comment
tuanphan Posted March 15, 2021 Share Posted March 15, 2021 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! Do you still need help? Center summary or center title/description? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ievavi Posted March 15, 2021 Author Share Posted March 15, 2021 (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 March 15, 2021 by ievavi Link to comment
tuanphan Posted June 18, 2021 Share Posted June 18, 2021 To remove current post, add this to Code Injection Footer <script> window.addEventListener('load', function () { function removeMatchingPageFromRelatedPosts() { var currentPath = window.location.pathname; var matchingSummaryItem = document.querySelector(`[href="${currentPath}"]`); if (!matchingSummaryItem) return; var summaryParent = matchingSummaryItem.closest('.summary-item'); summaryParent.remove(); console.log('matching blog post removed'); } removeMatchingPageFromRelatedPosts(); }); </script> Code by @RyanDejaegher Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
RyanDejaegher Posted June 18, 2021 Share Posted June 18, 2021 Thanks @tuanphan, there's a full write up here to understand more about how it works: https://ryandejaegher.com/remove-current-post-summary-block-squarespace/ JamIsJam88, Max_Sheridan and creedon 3 Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
ievavi Posted June 21, 2021 Author Share Posted June 21, 2021 Brilliant! Will check those resources, @tuanphan @RyanDejaegher tuanphan and Beyondspace 2 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