Guest Posted February 10, 2017 Posted February 10, 2017 (edited) I'm trying to remove the overlay color of the banner section of one of the Index Pages on my site.... The option in the Style Editor will remove it from all pages... Any idea? Edited February 10, 2017 by Guest Initial Revision
Guest Posted February 10, 2017 Posted February 10, 2017 After playing around, this code in the Page Header Code Injection of the Index Page, where I don't want the overlay color, works!: <style> .Index-page--has-image:before { background-color:rgba(0,0,0,0) } </style> Hope it helps!
re-present Posted February 27, 2017 Posted February 27, 2017 So I tried this answer. But it doesn't seem to work. I'm using Rally, which is also part of the Brine family. I wasn't actually trying to remove the colour, but simply change it. Any thoughts?
HortonGroup Posted May 12, 2017 Posted May 12, 2017 Hi there- We typically only use Brine family templates and have used this method to hide Index Overlay over certain sections of a website from time to time. It seems the Brine template was recently updated and the code for Index Overlays is no longer found at .Index-page--has-image:before. Support will not look into where the Index Overlay code has moved. Has anyone found where this has moved?
HortonGroup Posted May 12, 2017 Posted May 12, 2017 So looks like it's now displaying the overlay without the :before but it's a bit of the reverse, if you use CSS to try to hide the overlay, the overlay will still display. We found to fix our existing sites using this approach, we had to turn OFF the overlay in settings and apply it manually w/CSS to any sections needing an overlay. .Index-page--has-image, .Intro--has-image { background-color: rgba(255,255,255,.5) !important;} If anyone finds anything else / can find how to hide overlay over just one section in an Index after SS's recent change, we're all ears!
hellothisisjeff Posted May 30, 2017 Posted May 30, 2017 @HortonGroup – It seems like SS has changed the way color overlays work in the Brine template family compared to previous templates. This may have something to do with how they're achieving the parallax effect now and also in a way that protects large background images from being accessible (and stolen!) by a site visitor. When you set an overlay color in the Style Editor, it seems to take the transparency and apply it directly to the image (which is hidden from the HTML code) rather than using the rgba declaration on a separate div's background-color. To override this behavior and accomplish what you mentioned above about targeting one specific section and canceling out the overlay, I simply set the overlay color to 0% opacity in the Style Editor which effectively nullifies that style setting. Then in my Custom CSS, I added this bit of code to rewrite the global color overlay for all background/banner images: .tweak-overlay-parallax-enabled .Index-page--has-image, .tweak-overlay-parallax-enabled .Intro--has-image { background-color: rgba(15,40,45,.7); } Then, I was able to target the section I wanted to remove the overlay from via its section ID name: #mission { background-color:rgba(0,0,0,0); } ... where "mission" was my section/page title and my rgba settings cancel out any color from overlaying the banner image for that section/page. Hope that helps. I would love to know where SS put the background images and if they can still be accessible through the code.
HortonGroup Posted May 31, 2017 Posted May 31, 2017 Hi there- @hellothisisjeff Thanks much. My phrasing isn't always the greatest... yes, we're doing what you're suggesting. Manually applying the overlay "we had to turn OFF the overlay in settings and apply it manually w/CSS to any sections needing an overlay." *The overlay is not being applied to the image directly. You can still view source or inspect element and see the original uploaded image. Your reply got me digging again and I'm clear now... PARALLAX ON: the images and overlay are being loaded in a div - div class="Parallax-host-outer" that is just after the div class="Mobile loaded" section and before the div class=" Site loaded" section that holds the announcement bar, header, content and footer sections. In this case it's probably easiest to do the approach we're both doing, setting the overlay in CSS. PARALLAX OFF: I wasn't thinking properly I guess b/c it seems it IS still set up the old way where you could override an Overlay Color set by the Style Editor by calling the #section ID .Index-page-image:before and setting the background color to transparent. Thanks for the input / getting my head back on track. :) HEYTK 1
hilaurakatz Posted April 13, 2018 Posted April 13, 2018 It was a slight tweak to the callout that worked for me:
iamwarehime Posted April 29, 2018 Posted April 29, 2018 anyone have any updates on this? I am trying to make one section of the home page orange and then remove said color from the banner section (top of page). I am using Impact. @leohorton @hortongroup @jcuvdb @hellothisisjeff
danodejos Posted September 1, 2018 Posted September 1, 2018 This worked for me in the Vow template. Thanks for the help! D
wilderbydesign Posted April 20, 2019 Posted April 20, 2019 I have the same question, using the Impact... code injection... I'd like to target one banner image on a page within the Index and remove that color but can't figure out what the code language is for "overlay"
mike tt Posted May 16, 2019 Posted May 16, 2019 The following worked for me in template Wav from the Brine family: I have an overlay defined in the global Style Editor of Squarespace.For Pages where I don't want the overlay I injected this in the page-level CSS: .Intro--has-image:before { background-color: transparent !important; }
ArminB Posted May 20, 2020 Posted May 20, 2020 (edited) This normally works for 7.0 sites > add it to the CSS editor but you need a the browser inspection tool to find out the ID of that section you want to disable the overlay color [data-parallax-id="ID_OF_YOUR_SECTION"] .Index-page-image:before { background-color: rgba(0,0,0,0); } Edited May 20, 2020 by ArminB About Armin: Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084 Website: www.braunsberger-media.com
Kate_B_ Posted August 10, 2022 Posted August 10, 2022 Thank you very much @ArminB I had been trying with: .Intro--has-image:before and .Index-page--has-image:before but your suggestion of .Index-page-image:before was a winner!
ArminB Posted August 22, 2022 Posted August 22, 2022 I'm happy to hear that! About Armin: Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084 Website: www.braunsberger-media.com
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment