Free is an amount!
All product prices are wrapped in `span class=“amount”`. To make themers lives easier let’s be consistent. When the product is free the price should still be wrapped.
This commit is contained in:
parent
69d151ab2a
commit
8eebc7c900
|
@ -967,7 +967,7 @@ class WC_Product {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$price = __( 'Free!', 'woocommerce' );
|
$price = '<span class="amount">' . __( 'Free!', 'woocommerce' ) . '</span>';
|
||||||
|
|
||||||
$price = apply_filters( 'woocommerce_free_price_html', $price, $this );
|
$price = apply_filters( 'woocommerce_free_price_html', $price, $this );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue