I wish to add the price including vat below the price without vat on shop page and single product page. In Woocommerce / Settings / Price display suffix, I have put +vat({price_including_tax} vat inc.) Now it shows like A but I wish it shows like B (See picture below for more details)
Now I wish to reduce the fonts size of the price inc. vat for shop page and single product page. I think that there is a css code to insert. Can you please help ?
I managed to put the price inc. vat below the price ex vat by added code below in functions.php
Now I wish to reduce the fonts size of the price inc. vat for shop page and single product page. I think that there is a css code to insert. Can you please help?
Great job on successfully adding the price inclusive of VAT below the price exclusive of VAT on your shop and single product pages! Now, you’re looking to tweak the font size of the price that includes VAT. You’re right, CSS is the way to go for this!
Here’s a simple step-by-step guide to help you:
Navigate to Appearance > Customize in your WordPress dashboard.
Click on Additional CSS.
In the text box, enter the following code:
.product .woocommerce-Price-amount {
font-size: 15px; /* Change this to the size you want */
}
This CSS code specifically targets the WooCommerce price amount class, which is usually used to display the price on your shop and single product pages. Feel free to change the value of the font-size property to whatever size you’re comfortable with.
Thank you for your reply. When I add your css code, both prices (exc. vat and inc. vat) are reduced. I wish to reduce the price inc. vat only. Can you please help ?
Thanks in advance.
This reply was modified 1 year, 7 months ago by ridersjin.
Thank you for your email. The code works well for the discounted prices but not the normal prices. Find below picture for details https://ibb.co/g6PJxyt I think we need to add another css code.
I’m thrilled to know that the code @lorro provided worked like a charm for you! It’s fantastic to see you’ve managed to adjust the font size of the price, inclusive of VAT, on your single product page successfully.
I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.
And a huge shout-out to @lorro for stepping in with the needed help. We can’t thank you enough for your valuable contribution.
Hope you have a fantastic day!
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Display price with vat below price without vat’ is closed to new replies.