How to remove the comma in the odometer
-
Hello,
I tried to use the method written in the “Change comma to dot in odometer” previous post but even after changing the wp-content/plugins/livemesh-siteorigin-widgets/includes/widgets/lsow-odometers-widget/js/odometer.js file to this (as written in the github link you shared) :
jQuery(function ($) { window.odometerOptions = { format: 'd' // Change how digit groups are formatted, and how many digits are shown after the decimal point }; $('.lsow-odometers').livemeshWaypoint(function (direction) { $(this.element).find('.lsow-odometer .lsow-number').each(function () { var odometer = $(this); setTimeout(function () { var data_stop = odometer.attr('data-stop'); $(odometer).text(data_stop); }, 100); }); }, { offset: (window.innerHeight || document.documentElement.clientHeight) - 100, triggerOnce: true}); });
Nothing happen and the comma are still here (and I have not activated any cache related plugin yet).
Is there a way to solve this issue ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to remove the comma in the odometer’ is closed to new replies.