Jessummers Posted November 7, 2020 Share Posted November 7, 2020 Site URL: https://alligator-sturgeon-y82z.squarespace.com/?password=password Hi, I am trying to make the third section have a full bleed image beside + text to the right of it. I'd like to be able to reuse the code for sections lower in the page as well. I'd also like to be able to do it where there are 2 or 3 full bleed images side by side lower on the page. Thank you, Link to comment
Beyondspace Posted November 7, 2020 Share Posted November 7, 2020 You want it kinda like this? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Jessummers Posted November 7, 2020 Author Share Posted November 7, 2020 Just now, bangank36 said: You want it kinda like this? yes, exactly. Link to comment
Beyondspace Posted November 7, 2020 Share Posted November 7, 2020 Since 7.1 not allow to identify the section by it's name, we can only use generated ids, so I suggest you do these things to apply it to more than 01 section across the page 1. You should rename your image using naming convention manner, eg a common prefix will be used on all similar purpose image: full_bleed_yourimagename.png... 2. Notify me when you done I will send a script + css to re-style it like so, next time all image with same prefix will act the same way you dont have to add individual ids to the custom css BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Jessummers Posted November 7, 2020 Author Share Posted November 7, 2020 1 minute ago, bangank36 said: Since 7.1 not allow to identify the section by it's name, we can only use generated ids, so I suggest you do these things to apply it to more than 01 section across the page 1. You should rename your image using naming convention manner, eg a common prefix will be used on all similar purpose image: full_bleed_yourimagename.png... 2. Notify me when you done I will send a script + css to re-style it like so, next time all image with same prefix will act the same way you dont have to add individual ids to the custom css Images on that page have been re-named. Link to comment
Beyondspace Posted November 7, 2020 Share Posted November 7, 2020 2 hours ago, Jessummers said: Images on that page have been re-named. There are code block 1. Into Advanced->Custom Injection->Footer <script> window.Squarespace.onInitialize(Y, function() { Y.all('.sqs-block-image img[src*="full_bleed"]').each(function() { var url = this.getAttribute("src"); var file_name = url.substring(url.lastIndexOf('/')+1); this.ancestor(".row").addClass("sqs-block-image-row"); this.ancestor("section.page-section").setAttribute("data-image-name", file_name); }); }); </script> 2. Custom Css @media only screen and (min-width: 1024px) { section.page-section[data-image-name*="full_bleed"] .sqs-block-image { margin-top: -3.3vw; margin-bottom: -3.3vw; padding: 0 !important; } section.page-section[data-image-name*="full_bleed"] .sqs-block-image-row .col:first-child .sqs-block-image { margin-left: -3vw; } section.page-section[data-image-name*="full_bleed"] .sqs-block-image-row .col:last-child .sqs-block-image { margin-right: -3vw; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
shellyhughes_ Posted September 13, 2021 Share Posted September 13, 2021 Hi! This is exactly what I'm trying to do as well but the code isn't working. I renamed the image and added the Footer code and Custom CSS code. How do I find the link to give you access to the site? This is on Portfolio > Brand Strategy. Down where it says "brand guidelines." The image uploading here is failing. https://oboe-herring-genb.squarespace.com/portfolio/brand-strategy noliarootssite Thanks! Shelly Link to comment
tuanphan Posted September 14, 2021 Share Posted September 14, 2021 15 hours ago, shellyhughes_ said: Hi! This is exactly what I'm trying to do as well but the code isn't working. I renamed the image and added the Footer code and Custom CSS code. How do I find the link to give you access to the site? This is on Portfolio > Brand Strategy. Down where it says "brand guidelines." The image uploading here is failing. https://oboe-herring-genb.squarespace.com/portfolio/brand-strategy noliarootssite Thanks! Shelly Add to Design > Custom CSS /* Brand Guidlines */ [data-section-id="613f70de5c846b310825d635"] .content-wrapper { padding-right: 0px !important; padding-bottom: 0px !important; padding-top: 0px !important; } div#block-yui_3_17_2_1_1631547596159_16207 { padding-bottom: 0px !important; } html, body { overflow-x: hidden; } 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
shellyhughes_ Posted September 14, 2021 Share Posted September 14, 2021 8 hours ago, tuanphan said: Add to Design > Custom CSS /* Brand Guidlines */ [data-section-id="613f70de5c846b310825d635"] .content-wrapper { padding-right: 0px !important; padding-bottom: 0px !important; padding-top: 0px !important; } div#block-yui_3_17_2_1_1631547596159_16207 { padding-bottom: 0px !important; } html, body { overflow-x: hidden; } Thank you! It seemed to help but now it looks like it's just pushed to the right bottom, not taking up the whole section. There is space on the top and even on the right when i make it full screen. Link to comment
tuanphan Posted September 17, 2021 Share Posted September 17, 2021 On 9/14/2021 at 11:26 PM, shellyhughes_ said: Thank you! It seemed to help but now it looks like it's just pushed to the right bottom, not taking up the whole section. There is space on the top and even on the right when i make it full screen. Use this new code /* Brand Guidlines */ [data-section-id="613f70de5c846b310825d635"] .content-wrapper { padding-right: 0px !important; padding-bottom: 0px !important; padding-top: 0px !important; max-width: 100% !important; } div#block-yui_3_17_2_1_1631547596159_16207 { padding-bottom: 0px !important; padding-right: 0 !important; } div#block-yui_3_17_2_1_1631547596159_16207 figure { margin-right: 0 !important; } html, body { overflow-x: hidden; } @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1631547596159_16207 { padding-left: 0 !important; } [data-section-id="613f70de5c846b310825d635"] .content-wrapper { padding-left: 0 !important; } [data-section-id="613f70de5c846b310825d635"] .html-block { margin-left: 5vw !important; margin-right: 5vw !important; } } shellyhughes_ 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment