Jump to content

[Share] Add an overlay over Banner Slideshow

Recommended Posts

You can use these CSS code to add an overlay over List Banner Slideshow. If you can't make it work, you can send site url, I will check again.

#1. Add an overlay on All Banner Slideshows

div.user-items-list-banner-slideshow .slide-media-container:after {
    content: "";
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

image.png.deca71dd05ca4dd559b4cda4c50f146b.png

#2. Add an overlay on Banner Slideshows (One Page)

First, you need to use below tool to find Page ID. Use below tool.

In my example, we will have: #collection-66aae9bd8b99a43e3468bf45

image.png.489e8fa9e77aea9c63b3f4a8bbb61e01.png

Next, use this CSS code

#collection-66aae9bd8b99a43e3468bf45 div.user-items-list-banner-slideshow .slide-media-container:after {
    content: "";
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#3. Add an overlay on Specific Banner Slideshow

First, use #2 to find Banner Slideshow ID. In my example, we have: 

section[data-section-id="66aaecd26d74120473fc1def"]

image.png.8d80c87f6c891787b44747daec287003.png

Next, use CSS code

section[data-section-id="66aaecd26d74120473fc1def"] .slide-media-container:after {
    content: "";
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#4. Add an overlay on Desktop Only

Use this CSS code

@media screen and (min-width:768px) {
div.user-items-list-banner-slideshow .slide-media-container:after {
    content: "";
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}

#5. Add an overlay on Mobile Only

Use this CSS code

@media screen and (max-width:767px) {
div.user-items-list-banner-slideshow .slide-media-container:after {
    content: "";
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}

 

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
  • Replies 0
  • Views 724
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.