I’m using the Debut theme. I need to add a semi transparent highlight behind the text in my homepage slideshow. I found the below code in a community post (here); it worked for my desktop site but it messed up my mobile version. Any suggestions to keep mobile unchanged?
Step 1: Go to Online store > Themes > Actions > Edit code.
Step 2: Go to Assets > theme.css and paste this at the bottom of the file:
@media only screen and (min-width: 750px) {
.slideshow__text-wrap--desktop .slideshow__title{
background: rgba(0, 0, 0, 0.5);
padding: 16px;
display: inline-table;
}
}
With images for mobile, you need to create a Slideshow that displays only for mobile. Means add an option, it will help you to display either on desktop, or on mobile.
Yes the code now works for Desktop without affecting mobile! thank you very much. Do you know how I can add the same for the subheading text? (see screenshot below)
@LitExtension this is super! the second solution works excellent to show different slideshow groups for mobile and desktop! I could not thank you enough!
Regarding text highlight, the code works but for the main heading, how can I make it work for the subheading too? (Screenshot below)