Milestone point 1.000

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    flyinghearts
    April 5, 2019 at 12:12 pm #137861

    Hello, a time ago I needed a solution for a point in the milestone counter:

    This was the conversation (Solution):
    Dear Noda,
Here is the solution on this (much easier than we initially thought):
    in wp-content/themes/HighendWP/scripts/jquery.custom.js, 2 changes:
    line 2189:
countAsset.find(‘.count-number’).text(Math.floor(this.countNum).toString().replace(/\B(?=(\d{3})+(?!\d))/g, “,”));
replace with this:
countAsset.find(‘.count-number’).text(Math.floor(this.countNum).toString().replace(/\B(?=(\d{3})+(?!\d))/g, “.”));
    AND
    line 2193:
countAsset.find(‘.count-number’).text(this.countNum.toString().replace(/\B(?=(\d{3})+(?!\d))/g, “,”));
replace with this:
countAsset.find(‘.count-number’).text(this.countNum.toString().replace(/\B(?=(\d{3})+(?!\d))/g, “.”));
    Hopefully it helps other people too.
    It would be great of course if in the future versions of the theme this could be handled from the frontend 🙂

    After the theme update the point is gone, do you have an idea how I can fix it again,

    thank you,

    Melanie

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.