How to customize a solid button in Sense theme?

Hello there,

I hope someone from here can help me, I think maybe I’ll need a custom css or something for my issue, I’ll let the photos to talk…


@vladescupetrut

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

http://puppyloft.ro

@vladescupetrut

thanks but which one look like first or second

So the first one need to be a solid buton for “Out of stock” and in the second photo is a product “Sale”

@vladescupetrut

yes i know but do you need both same look or different

Yes , the same

@vladescupetrut

yes, please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/base.css ->paste below code at the bottom of the file.
span.badge.price__badge-sold-out.color-inverse {
    background: #5e3653 !important;
    border-color: #5e3653 !important;
}

Wow, it works! But now need to change the color of the text to white because now is in black at “out of stock” and its not clearly visible

Hi @vladescupetrut ,

I can see that you’ve already had help from @Ketank with editing the code on your theme to change the buttons. That’s perfectly fine, but I just wanted to make you aware that there is an option to do this that is inbuilt into the sense theme and doesn’t require any code editing:

Meanwhile, can I ask how your preparations for BFCM are going?

Hello Andrew, yes i know about that settings but i needed that code, because it doesnt exist and border on my button “out of stock”

@KetanKumar can u please tell me how to modify the text color inside the solid button ?

And i have one more question if you guys can help me, on the home page at Featured collection, can i make it show in a random order not in alphabetical order ?

@vladescupetrut

yes, please share particular different product url so i will guide

this one have the color text white
https://puppyloft.ro/products/bluza-cu-imprimeu-de-craciun

and this one have text color black

https://puppyloft.ro/products/hanorac-pwcci-bej

@vladescupetrut

yes, please add this code

span.badge.price__badge-sold-out.color-inverse {
    background: #5e3653!important;
    border-color: #5e3653!important;
    color: #fff;
}