• Resolved dynamiqueembauche

    (@dynamiqueembauche)


    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)
  • Thread Starter dynamiqueembauche

    (@dynamiqueembauche)

    I even tried to change also the odometer.min.js to :

    jQuery(function($){window.odometerOptions={format:'d'};$(".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})});

    Just in case, but it didn’t do anything either.

    Plugin Author livemesh

    (@livemesh)

    You are right. For some reason, the settings do not seem to work at all. I tried the same with their jsFiddle example along with our own plugin but with no results. Let me check with the developers of the JS library and see if they can help.

    I solved the problem with css:

    /* Font comma odometer */

    .odometer-formatting-mark {
    margin-left: -10px;
    margin-right: -10px;
    color: #ffffff;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove the comma in the odometer’ is closed to new replies.