Answer the question
In order to leave comments, you need to log in
How to add note to WooCommerce price?
By default, the price is displayed as "150 R".
It is required to add an explanation to the price "150 R/m2"
How can this be implemented and change the addition to the price depending on the category? Is there a ready solution in the form of a plugin?
Website for floor coverings and accessories.
Answer the question
In order to leave comments, you need to log in
Open the source code of the page, see what class you have for the currency symbol. And use the :after pseudo-element to add text via content .
For example, in the standard Woocommerce Storefront theme, the same is done through CSS:
.product_cat-for-home span.woocommerce-Price-currencySymbol:after {
content: "/м2";
}
.product_cat-for-home- product category class,
span.woocommerce-price-currencySymbol- span tag selector for currency symbol.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question