Contact Us
Hello Hotel267 East Lancashire Road/A580
Manchester
M27 0AA T. 0161 793 1915 E. hello@hellohotels.co.uk
document.addEventListener('DOMContentLoaded', function() { // Only run this script on the /wedding-venues-ribble-valley page if (window.location.pathname === '/wedding-venues-ribble-valley' || window.location.pathname === '/wedding-venues-ribble-valley/') { // Function to apply the changes once the Tripleseat form is ready function customiseTSForm() { // Hide company-related fields and the event description field const css = ` .cell_lead_company, .row_company, .ts_lead_company, #lead_company, label[for="lead_company"], .tripleseat_field.ts_event_description { display: none !important; } `; const style = document.createElement('style'); style.textContent = css; document.head.appendChild(style); // Prefill the hidden event description field with "Wedding" const eventInput = document.getElementById('lead_event_description'); if (eventInput) { eventInput.value = 'Wedding'; } } // Wait for the Tripleseat form to appear in the DOM const checkFormInterval = setInterval(function() { if (document.querySelector('.tripleseat_field.ts_event_description')) { clearInterval(checkFormInterval); customiseTSForm(); } }, 300); // check every 300ms // Optional timeout to stop checking after 10 seconds setTimeout(() => clearInterval(checkFormInterval), 10000); } });
Book Your Stay