Hello Renaud,
Thanks for your questions. It seems you want to achieve 2 things:
- Removing digits after the dot
- Adding a valuta sign
With normal use of the block you cannot do this. I did consider adding these features, but I reasoned it would be better not provide them:
- it would add an extra settings for each individual block. That would make it quite a bit extra work to create a pricelist.
- The block validates the price, that requires some predictability and leaves no room for text input.
- Valuta icons would arguably take up unnecesary space in the pricelist. Especially on mobile there is not much available space.
No solution to remove digits
Currently you cannot modify the amount of digits.
Solution for adding a valuta (€) sign
However I did have the foresight, that some people wanted to do this anyway. Therefore all prices in the block have a class of .price
. You could add your own css to it.
To add a non-breaking space and an euro sign, you can use:
<style>
.wp-block-price-list-block-zebra-price-list-block-zebra .price::after {
content: '\00a0\20ac';
}
</style>
You can put it at the top of the page in a html block for now. Normally I would’ve written a custom style. However that seems to have been deprecated for block themes ( creating a child-theme for this is probably a bit daunting for the average user ).
PS: Do let me know if you know a better approach to overwrite the css, I m just improvising what works for an average wordpress user that can’t access the old customizer to override css.