We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #2220458
Webhooks
Closed

Comments

  • Martynas started the conversation

    Hello, I want to hide attending people in events. Didn't found in code where it lays so I thought the best way is to remove by simple JS text removal. 

    I have added delay after site is loaded, find element and remove text I want. But problem it loads different time everytime. So I thought maybe there is somekind of event that I can hook my custom listener?

    Example what I did:
    ```

    document.addEventListener("DOMContentLoaded", function(e) {
      setTimeout(function() {
          var capacities = document.getElementsByClassName("am-event-sub-info-capacity");
          for (let item of capacities) {
            var price = item.innerText;
            price = price.slice(0, 11) + price.slice(15,20);
            item.innerText = price;
          }
      }, 2000);
    });

    ```

  • [deleted] replied

    Hello Martynas, 

    Could you please tell me where exactly do you want to hide this? Thanks!

  • Martynas replied

    Attached image to show what exactly I want to hide

  • [deleted] replied

    Hello Martynas,

    Please add this script to the page where you have Amelia shortcode: 

    <script>
    window.ameliaBooking = {
    replaceText: function () {
    var elements = document.getElementsByClassName('am-event-sub-info-capacity') if (elements.length && ameliaIntervalId) {
    clearInterval(ameliaIntervalId)
    } for (var i = 0; i < elements.length; i++) {
    var elementImg = elements[i].getElementsByTagName('img')[0]
    var elementText = elements[i].textContent var str1 = elementText.substr(0, elementText.lastIndexOf(":"))
    var str2 = elementText.substr(elementText.lastIndexOf("/") + 1) var textNode = document.createTextNode(str1 + str2) elements[i].innerHTML = ''
    elements[i].appendChild(elementImg)
    elements[i].appendChild(textNode)
    }
    }
    }var ameliaIntervalId = setInterval(window.ameliaBooking.replaceText, 500)
    </script>

    And let me know if it worked. Thanks!

  • Martynas replied

    Yes it did worked! Thank you!

  • [deleted] replied

    Great, glad to hear that !

    You are welcome. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help,