How to decrease the sale label mobile version

Solved

How to decrease the sale label mobile version

lepuffcases
Tourist
16 0 1

Hi there,

 

can anyone help me out with some code to fit in the sales label (renamed to premium) on mobile device? I want to have it upper left above to be sure that my product is display perfectly.

store:www.lepuffcases.nl

 

IMG_5430.png

IMG_5429.png

 

 

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1747 532 592

This is an accepted solution.

@lepuffcases,
Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1726898116401.png

Step 2:  Search for the file theme.liquid. And add this code before </head>

<style>
@media only screen and (max-width: 768px) {
  .card__inner .card__badge {
    transform: scale(0.8)!important
  }
  .card--media .card__inner .card__content {
    padding: 2px!important 
  }
}
</style>

Result:

BSSCommerceB2B_1-1726898308316.png

Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 7 (7)

Rahul_dhiman
Shopify Partner
563 113 110

Hello @lepuffcases 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.

@media screen and (max-width: 749px) {
   .badge { 
    font-size: 9px; 
    padding: .5rem 0.3rem .5rem;
   }  
   .card__badge.top {
    margin: -23px !important;
}
}

 

 

result
2.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 [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

BSSCommerce-B2B
Shopify Partner
1747 532 592

This is an accepted solution.

@lepuffcases,
Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1726898116401.png

Step 2:  Search for the file theme.liquid. And add this code before </head>

<style>
@media only screen and (max-width: 768px) {
  .card__inner .card__badge {
    transform: scale(0.8)!important
  }
  .card--media .card__inner .card__content {
    padding: 2px!important 
  }
}
</style>

Result:

BSSCommerceB2B_1-1726898308316.png

Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

lepuffcases
Tourist
16 0 1

It works! is there still a possibility to change the frame from straight to round?

lepuffcases
Tourist
16 0 1

I forgot to mention that I also want make the adjusment for the desktop version. Could you help me out?

BSSCommerce-B2B
Shopify Partner
1747 532 592

@lepuffcases, Change the previous code like this

<style>
.card__badge .badge {
  border-radius: 10px !important;
}
@media only screen and (max-width: 768px) {
  .card__inner .card__badge {
    transform: scale(0.8)!important
  }
  .card--media .card__inner .card__content {
    padding: 2px!important 
  }
}
</style>

 Result on mobile and desktop

BSSCommerceB2B_0-1726976882716.png

BSSCommerceB2B_1-1726976901371.png

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Rahul_dhiman
Shopify Partner
563 113 110

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.

@media screen and (max-width: 749px) {
.badge {
border-radius: 10px !important;
}
}

result

3.png

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 [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

BSS-TekLabs
Shopify Partner
2350 702 827

- Here is the solution for you @lepuffcases 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
@media only screen and (max-width: 600px) {
.badge.badge--bottom-left {
    margin-left: -20px !important;
    top: 5px !important;
    position: absolute !important;
    padding: .5rem .6rem !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1726898502008.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now