Creating Line Break for Slideshow? {Sense Theme}

Creating Line Break for Slideshow? {Sense Theme}

LightStyl
Excursionist
19 0 5

So I followed a couple other posts that led me to adding the below to my base.css file:

.template-index .slide .content { width: 50%; }

 

But it doesn't seem to be making any changes. I just need to wrap the headline text a bit (like 50%) because the text is spilling into the image. Any ideas what I'm doing wrong? It's the Sense theme. Website is plumeskin.com

 

Any thoughts our guidance appreciated, thanks!

Cameron

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @LightStyl 

Do you mean like this? 

Made4uoRibe_0-1728071251344.png

If it is check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 990px){
.banner--desktop-transparent .banner__box {
        width: 50%;
    }
}
@media only screen and (max-width: 989px){
.banner--desktop-transparent .banner__box {
        width: 30%;
    }
}
@media only screen and (max-width: 749px){
.banner--desktop-transparent .banner__box {
        width: 50%;
    }
}
.banner__content {
    justify-content: right;
}

 

And save. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
LightStyl
Excursionist
19 0 5

I do mean like that but like the other solutions I've tried nothing seems to change when I paste the code at the very end of the base.css file:

Screenshot 2024-10-04 at 2.13.52 PM.png

EDIT: Hold on, I found the slideshow.css file (not base.css) and it might have done the trick. Works on desktop but has totally messed up the mobile view. 

Screenshot 2024-10-04 at 2.20.50 PM.png

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Yes, you can add on the slideshow.css. Base.css is more universal css code. 

I adjust the code, try it again. 

 

@media only screen and (min-width: 990px){
.banner--desktop-transparent .banner__box {
        width: 50%;
    }
}
@media only screen and (max-width: 989px){
.banner--desktop-transparent .banner__box {
        width: 30%;
    }
}
@media only screen and (max-width: 749px){
.banner--desktop-transparent .banner__box {
        width: 50%;
    }
.banner__content {
        justify-content: right !important;
}
}

 

and save. 

Result:

Made4uoRibe_0-1728077596043.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
LightStyl
Excursionist
19 0 5

Okay that sorta works after some tinkering around with it. I created a slide for mobile only and a slide for desktop only and adjusted heading sizes so go them to a decent place. Is there a way to get the desktop only one to narrow a bit without impacting my mobile only one? If not or it's too tedious I'll leave with how it is. I was just hoping to get "Soft on Skin," its own line and "tough on dryness" right beneath it. But I can live with this thanks for all the help.

 

 

Screenshot 2024-10-04 at 4.57.03 PM.png

Screenshot 2024-10-04 at 4.56.52 PM.png

LightStyl
Excursionist
19 0 5

Can you tell me where you put that code? I changed the image and need to do this again but can't find that code anywhere.