Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi
I've been trying to add a custom overlay to the slideshow on my homepage, I have the following code:
background: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%);
However I am struggling to find where to place this.
The best place so far has been in the "SECTION-IMAGE-BANNER.css" file under the .banner__content section, but this leaves a gap at the side when viewing the site on a certain screen size.
The other option was to place it in the .banner::after, .banner__media::after section. This removes the gap - but it only shows the overlay on the first slide, not the rest.
Please can I get some suggestions on this one?
Thanks in advance.
D
Hello @ClearP
I would like to give you a solution to support you.
You can add the below code at the end of the "SECTION-IMAGE-BANNER.css" file. https://prnt.sc/qXhYG06Ue2ly
.banner__media::after{
background: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%);
}
Then, set the image overlay opacity to 100% for each Image slide.
(Note that each Image slide has its own settings)
Best regards,
GemPages Support Team
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025