Hello everyone,
I’m looking to add a box behind the text on a slideshow in the Warehouse theme to increase readability. Here’s an image illustrating how the box could be positioned.
How do I edit this? I’ve played a bit in theme.css using the following code:
.collection-grid-item__title.h3 {
position: relative;
top: 12px;
background: #bdaa0a;
}
Any guidance is appreciated
system
September 4, 2021, 10:01am
2
hii, @Oliverraahauge
Kindly share your store URL.
Thank You.
system
September 4, 2021, 10:06am
4
hii, @Oliverraahauge
Paste this code on top of the theme.scss file.
h2.slideshow__title.heading.h1 {
background-color: white !important;
}
Thank You.
1 Like
I will try to add opacity to the box too
I see this fills the entire screen. How can I adjust the width so its not exceeding the text length that much?
Desktop
Mobile
You’re amazing
system
September 4, 2021, 10:32am
9
hii @Oliverraahauge
Paste this code on top of the theme.scss file.
@media only screen and (min-width: 992px) {
h2.slideshow__title.heading.h1 {
max-width: 38% !important;
margin-left: 31% !important;
}
}
Thank You.
1 Like