How can I change the Posistion of the discount price?
https://ryusei.co.id/collections/august-vibes
become
How can I change the Posistion of the discount price?
https://ryusei.co.id/collections/august-vibes
become
@Ryusei_1 please put this css in code :
.product-card compare-at-price {
display: none;
}
.product-card sale-price {
color: inherit;
}
@media screen and (min-width: 700px) {
.product-card__figure>.badge-list {
inset-block-start: .5rem;
inset-inline-start: calc(100% - 55px);
}
}
Hi @Ryusei_1
-Go to your Shopify store and log in using your credentials.
-In the left-hand menu, click on Online Store.
-Under the Online Store section, click on Themes.
-In the Themes section, find the theme you are currently using and click on the Actions dropdown menu.
-Select Edit code from the dropdown.
-Locate the theme.css File:
Click on the theme.css file to open it.
Scroll down to the bottom of the file.
Copy and paste the following CSS code at the end of the file:
.badge-list.badge-list.badge-list--vertical {
width: 100% !important;
flex-direction: row-reverse !important;
}
Save Your Changes
Go back to your Shopify store and refresh the page to see the changes in effect. The discount price or any elements affected by this CSS should now be repositioned according to the new style rules.
Changed Preview
Hope to have helped you,
Dawood Mirza
@Ryusei_1 Please follow below steps to change the Position of the discount price.
.inset-inline-end: .5rem;
If you find hard to locate the element, just paste below code at the bottom of the theme.css file.
.product-card__figure>.badge-list {
inset-inline-end: 0.5rem;
inset-inline-start: auto;
}
Result will be like,
Please provide your support by click “Like” and “Accepted” if our solution works for you. Thanks for your support.