Home › Forums › WoodMart support forum › Prices adjustment and alignment
Prices adjustment and alignment
- This topic has 12 replies, 3 voices, and was last updated 1 year, 8 months ago by
Elise Noromit.
-
AuthorPosts
-
August 12, 2023 at 3:02 pm #488391
bk5ParticipantHi there,
I’ve added a new feature to the child theme that calculates sale prices, like you can see in the picture I provided. I also want to make a few changes. I want the original price with a line through it to move down a bit, and I want the amount showing how much is saved to be lined up with the price on the right side.
Thanks.
Attachments:
You must be logged in to view attached files.August 13, 2023 at 5:04 pm #488482
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
August 14, 2023 at 4:35 pm #488631
bk5ParticipantI have provided you in a private content
August 16, 2023 at 12:49 am #488961
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.product-grid-item .product-element-bottom > .wrap-price > .price { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; } .product-grid-item .product-element-bottom > .wrap-price > .price ins { order: -1; } .product-grid-item .product-element-bottom > .wrap-price > .price del { width: fit-content; }
Best Regards
August 16, 2023 at 1:48 am #488971
bk5ParticipantHi Elise Noromit, Thanks for your reply.
I have added the code as you told me, But that CSS did not change anything.
August 16, 2023 at 4:58 pm #489121
Elise NoromitMemberHello,
We have checked and we do not see the custom code on your site. Please add this code to the Theme Settings > Custom CSS > Global. Please leave the code there even if it does not work so that could enter and check the reason.
If you have any questions please feel free to contact us.
Best Regards
August 16, 2023 at 6:14 pm #489132
bk5ParticipantHi , Yes I removed the code this morning, But I have added now back the code do not change anything.
August 17, 2023 at 9:37 am #489209
Bogdan DonovanKeymasterHi,
Your previous custom code has syntax errors which breaks all subsequent code:
1. Misspell of :is() CSS pseudo-class function. Screenshot https://prnt.sc/LQtviB4PE7o9
2. CSS unrelated dot. Screenshot https://prnt.sc/saO9dz770RL5Before adding any new additional code, try to fix all previous errors and check again.
Kind Regards
August 17, 2023 at 10:20 am #489219
bk5ParticipantThank you so much, I want a similar css function for the Categories page product price and also for a single product price as well.
August 18, 2023 at 12:38 pm #489577
bk5ParticipantCan you please help ? I am waiting for it
Attachments:
You must be logged in to view attached files.August 19, 2023 at 3:45 am #489722
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
This custom is for the product category:
.product-grid-item .product-element-bottom > .price { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; } .product-grid-item .product-element-bottom > .price ins { order: -1; } .product-grid-item .product-element-bottom > .price del { width: fit-content; }
This code is for the single product:
body .wd-single-price .price { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; text-align: left; } body .wd-single-price .price ins { order: -1; text-align: left; } body .wd-single-price .price ins:before { display: none !important; } body .wd-single-price .price del { width: fit-content; text-align: left; } body .wd-single-price .price del .amount { margin: 0; }
Best Regards
August 19, 2023 at 2:38 pm #489807
bk5ParticipantHi Elise, Thank you so much for the code.
August 20, 2023 at 2:02 pm #489881
Elise NoromitMemberYou are welcome!
Wish you a wonderful day!
-
AuthorPosts
The topic ‘Prices adjustment and alignment’ is closed to new replies.
- You must be logged in to create new topics. Login / Register