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>
Hello, is there a way to hide number of places available in the front end?
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:
and let me know if it helped.