Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: reposition the sold out badge to bottom left

reposition the sold out badge to bottom left

jkilov
Tourist
5 0 1

Hi There, I am having troubles positioning the shopify sold out badge on the bottom left of the product. Right now it is sitting on the top left. Any help will be greatly appreciated

you can access my store here - it is currently in preview mode


jkilov_0-1730240916869.png

 

Replies 6 (6)

DaisyVo
Shopify Partner
838 107 123

Hi @jkilov 

 

Here are two ways that you can position the Sold out badge to the bottom left corer:

1. In Theme settings 

 

Step 1: From your Shopify admin, go to Online Store > Themes  > Click Customize.

Step 2: Click the Theme settings gear icon

Step 3: Click Badges

Step 4: In the Position on cards drop-down menu, select Bottom left.

Step 5: Click Save to apply your changes.

2. Use CSS code

You can use this CSS code to position the badge:

.sold-out-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #ff0000; /* Red background color */
  color: #fff; /* White text color */
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 999; /* Ensure the badge is always on top */
}

 

I hope it helps!

 

Best regards,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
jkilov
Tourist
5 0 1

Hi, Thank you for your response. My theme settings does not have a 'Badges' Option?

Also i tried the code you provided and it did not work - infact it pushed the button higher.

namphan
Shopify Partner
1906 247 274

Hi @jkilov,

Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:

@media screen and (min-width: 700px) {
    .product-card__figure>.badge-list {
        inset-block-start: auto;
        inset-block-end: .5rem;
    }
}

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
jkilov
Tourist
5 0 1

Amazing, Thank you for your help!

namphan
Shopify Partner
1906 247 274

Hi @jkilov,

You're welcome and happy to help you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

Rahul_dhiman
Shopify Partner
656 127 132

Hello @jkilov 
Go to online store ----> themes ----> actions ----> edit code ---->theme.css
add this code at the end of the file and save.

sold-out-badge.badge.badge--sold-out {
margin-top: 400px !important;
}

result
45.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167