[Warehouse theme] Adding Box Behind Slideshow Text To Increase Readability?

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 :folded_hands:

hii, @Oliverraahauge
Kindly share your store URL.
Thank You.

Of course https://thefurnitureemporium.ie/

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

Thanks a bunch :folded_hands:

@Oliverraahauge
Welcome.

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 :folded_hands:

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

This works!! Thanks! :slightly_smiling_face: