Okay
  Public Ticket #2815473
Display start time only/ 24 hour
Closed

Comments

  • Chearitée started the conversation

    I'm pretty sure I'd done it before but I can't seem to find the option.
    How do I display just 10:00am instead of 10:am - 2:00pm for a 4 hours service.


    Also, how do I switch to a 24hour clock. This am/pm thing confuses Europeans.

  • [deleted] replied

    Hi there,

    thank you for reaching out to ussmile.png

    You can use the script below to show only the start time:

    <script>
    setInterval(function () { var elements = document.getElementsByClassName('el-radio-button__orig-radio'); var appointment_times = document.getElementsByClassName('el-radio-button__inner'); for (var i = 0; i < elements.length; i++) {
    appointment_times[i].innerHTML = appointment_times[i].innerHTML.split(' - ')[0]; }
    }, 1000)
    </script>

    Also, if you change the time format of your WordPress Amelia will follow and show the same format.