ThemeFlection on "[Plugin: TF Random Numbers] Decimal Support"

ساخت وبلاگ

TF Number seems to only support integers. Is there a way to get decimal support for at least 1 place. (eg: 2.9, 4.5, etc.) (I also have the controller add-on but don't see anything there either...)

https://wordpress.org/plugins/tf-numbers-number-counter-animaton/

ThemeFlection
Member
Plugin Author

Posted 1 hour ago #

Hi,

TF Numbers don't support decimals at this point, controller addon gives you more conteol and layouts, and also let's you use comma separator (,) but dot (.) has no support yet. I have a plan of integrating that feature also in some of the future updates of controller addon.

Best Regards,
Aleksej

Thanks Aleksej. It did occur to me that a workaround might be to place two integers on either side of a period. Assuming the integer to the right of the decimal point was set to increment slightly faster (through the Controller addon), and with some css tweaking, this might be indistinguishable from an incrementing decimal... But haven't had time to try this yet.

ThemeFlection
Member
Plugin Author

Posted 15 minutes ago #

Hm, yes this could be achieved with some CSS tweaking, for example if a new layout (a pseudo after element of number fo example) is created, with background set to match the background color of the numbers section and is set to have higher z-index than the number and then placed just a little over the bottom line of comma (,) to hide it, visually it would appear as decimal :)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 223 تاريخ : شنبه 29 خرداد 1395 ساعت: 2:19