Home › Forums › WoodMart support forum › text-decoration for del price
text-decoration for del price
- This topic has 6 replies, 2 voices, and was last updated 6 months, 2 weeks ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 17, 2024 at 1:18 pm #557978
av_admin_1984ParticipantHi
I want to add
text-decoration: line-through;
for price and woocommerce-Price-currencySymbol separately
because it shows the underline under thewoocommerce-Price-currencySymbol
and I want to align them togetherYou already received access to my site on this topic https://xtemos.com/forums/topic/change-sale-label/
Please don’t share anything of my site (just put your code and clear the cache )
I will check the page and see how it looks likeApril 17, 2024 at 1:21 pm #557979
av_admin_1984ParticipantSorry
On this site, I have that problem,
Just give me the css code for that to fix, I couldn’t find the problem and it seems everything working well on that site I give you accessApril 17, 2024 at 4:51 pm #558090
Aizaz Imtiaz AwanKeymasterHello,
Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
.price del { text-decoration: line-through !important; } span.woocommerce-Price-currencySymbol { text-decoration: line-through !important; }
Best Regards.
May 31, 2024 at 9:27 pm #569868
av_admin_1984ParticipantHi
I need you to check my site
First please don’t share anything, okay?
I want to remove
text-decoration: line-through ;
because the position of that is not good and if I add that to another class it will show 2 line , I need to remove the top line and add a second line, please check my site and image I upload it in a private areaThanks
June 1, 2024 at 11:05 am #569927
Aizaz Imtiaz AwanKeymasterHello,
Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS. Change the code as per your requirements.
.price del { text-decoration: none !important; } /* Add line-through only to the price amount */ .price del .woocommerce-Price-amount { position: relative; } .price del .woocommerce-Price-amount::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; /* Adjust the thickness of the line */ background: #000; /* Adjust the color of the line */ top: 50%; /* Align the line in the middle */ transform: translateY(-50%); }
Best Regards.
June 1, 2024 at 12:28 pm #569951
av_admin_1984ParticipantHi
Yes, it worked
Please close
ThanksJune 1, 2024 at 12:54 pm #569953
Aizaz Imtiaz AwanKeymasterSounds Great! that your issue has been solved.
I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.
We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.
Thanks for contacting us.
Have a great day.Topic Closed.
Best Regards. -
AuthorPosts
- You must be logged in to create new topics. Login / Register