As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #2624883
hide number of places available in the front end
Closed

Comments

  • Marcio Kirzner started the conversation

    Hello, is there a way to hide number of places available in the front end?

  • [deleted] replied

    Hello,

    Thank you for your message.

    That isn't an option in Amelia, but can be achieved with some customization. Please add this script to the page where you have your Amelia events 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 helped.