/* Amelia - hide slot/ticket counts on front-end booking page only */ add_action('wp_footer', function () { // Do not run in wp-admin if (is_admin()) { return; } // Only run on the booking page if (!is_page('booking')) { return; } ?> document.addEventListener('DOMContentLoaded', function () { function hideAmeliaSlots() { const selectors = [ '.am-ec__info-capacity', '.am-ec__info-capacity__number', '.am-ec__info-capacity__text', '.am-event__info-capacity', '.am-event__info-capacity__number', '.am-event__info-capacity__text', '.am-event-modal__mini-info-capacity', '.am-event-modal__mini-info-capacity__number', '.am-event-modal__mini-info-capacity__text', '.am-ct__info-spots', '.am-ct__info-spots__number', '.am-ct__info-spots__text' ]; selectors.forEach(function (selector) { document.querySelectorAll(selector).forEach(function (element) { element.style.setProperty('display', 'none', 'important'); element.style.setProperty('visibility', 'hidden', 'important'); element.style.setProperty('opacity', '0', 'important'); element.style.setProperty('height', '0', 'important'); element.style.setProperty('width', '0', 'important'); element.style.setProperty('overflow', 'hidden', 'important'); }); }); } hideAmeliaSlots(); const observer = new MutationObserver(function () { hideAmeliaSlots(); }); observer.observe(document.body, { childList: true, subtree: true }); });
Account
Cart

No products in the basket.