Hello,
In eventbrite they offer a popup style modal for the buy tickets button. I placed the code in my site at the bottom in the “Purchase Tickets” area. You will see when its clicked the event brite pops up over everything. How can I being that functionality to the other buttons and even the menu button that says purchase tickets? I feel like I need a jquery code that triggers the ID needed. If we can get this to work I will eliminate that entire section at the bottom for “Purchase Tickets”
Also do I need to move some of the code for the button to the JS area in the theme? This is the embed code from event brite…
<!-- Noscript content for added SEO -->
<noscript><a href="https://www.eventbrite.com/e/holiday-village-snow-park-light-village-tickets-171385617997" rel="noopener noreferrer" target="_blank"></noscript>
<!-- You can customize this button any way you like -->
<button id="eventbrite-widget-modal-trigger-171385617997" type="button">Buy Tickets</button>
<noscript></a>Buy Tickets on Eventbrite</noscript>
<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"></script>
<script type="text/javascript">
var exampleCallback = function() {
console.log('Order complete!');
};
window.EBWidgets.createWidget({
widgetType: 'checkout',
eventId: '171385617997',
modal: true,
modalTriggerElementId: 'eventbrite-widget-modal-trigger-171385617997',
onOrderComplete: exampleCallback
});
</script>