cro0w Posted February 20 Posted February 20 (edited) Hello, When taking advantage of summary blocks, related videos, and video library features, there's a big and sad bug that Squarespace doesn't seem interested in fixing. Let's start with the video library. https://vivsharon.squarespace.com/video-testimonials PW: 123 1. If you choose to take advantage of this feature, if you plan on embedding YouTube videos, be ready to hate your life. This will be the result, and no, you can't have custom thumbnails, on embeds, why? IDFK either?! Solution? Code. Not sure how to give them rounded corners. // Video Page Thumbnails .lessons.collection-content-wrapper .grid-image-wrapper { padding-bottom: 56.25%; } but it doesn't stop there. Let's move on to Summary blocks (Carousel). You guessed it right! Broken. 2. How can we resolve this situation? Not sure, I was able to give them a rounded borders tho. // Summary Block Thumbnails .summary-thumbnail-image { border-radius: 15px; overflow: hidden; } 3. Next problem, related videos, and yes, you guessed it right, broken. Not sure, but we gave them also rounded corners. // Recommended Thumbnails .lessons-item-related-wrapper .lessons-item-related-item-list .related-item img.related-item-thumbnail { border-radius: 15px; } Does anyone know how to solve this issue with the letterbox on videos being recommended or pulled through summary blocks? Edited February 20 by cro0w Minor grammar edits. Beyondspace 1
Solution cro0w Posted February 22 Author Solution Posted February 22 Once again this forum proves to no be super helpful for me, I've posted many times I never get help and come back to figure it out. For those of you with the same problem that Squarespaces causes when using YouTube Embeds on their site, specifically with loading them on the video library for Squarespace 7.1. I assume they do this cus they want you to upload your own videos and then have to pay them more, ridiculous! Here's all the codes to fix what I needed from my original post. You can clean up anything else. /* Recommended Thumbnails */ .lessons-item-related-wrapper .lessons-item-related-item-list .related-item .related-item-link-thumbnail { height: auto; } .lessons-item-related-wrapper .lessons-item-related-item-list .related-item img.related-item-thumbnail { border-radius: 15px; aspect-ratio: 16/9 !important; } /* Hover mode */ .lesson-item .related-item { transition: transform 0.3s ease-out; /* Initial transition for smoother return */ } .lesson-item .related-item:hover { transform: translateY(-10px); transition: transform 0.3s ease-in-out; /* Transition on hover with ease-in-out for smooth effect */ } /* Summary Thumbnails */ .sqs-block-summary-v2 .summary-thumbnail-container img.loaded { border-radius: 15px; aspect-ratio: 16/9; object-fit: cover; } /* Video Library Thumbnails */ .lessons.collection-content-wrapper .grid-image-wrapper { padding-bottom: 56.25%; } .grid-image { border-radius: 15px; } I hope this helps someone else get rid of the black bars on YouTube thumbnails. tuanphan and Beyondspace 2
insuficientspectrum Posted September 3 Posted September 3 Thank you so much for this code! Saved me as well, although I don't want to round my videos, any chance you can give me this string of code without rounding the videos? Once again, you are a lifesaver Beyondspace 1
tuanphan Posted September 7 Posted September 7 On 9/4/2024 at 12:50 AM, insuficientspectrum said: Thank you so much for this code! Saved me as well, although I don't want to round my videos, any chance you can give me this string of code without rounding the videos? Once again, you are a lifesaver I think this code for mobile, you can remove it 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!)
Beyondspace Posted October 16 Posted October 16 (edited) The black bar is made by Youtube, not Squarespace I'd say you join the dicussion here for clarity Edited October 16 by Beyondspace BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment