Timoteo
-
Posts
3 -
Joined
-
Last visited
Reputation Activity
-
Timoteo got a reaction from tazmeah in Style Eventbrite button to match site buttons (or add script to site button)
@tazmeah Worked perfectly - and your code makes total sense to me now that I see it. Thanks so much!
-
Timoteo reacted to tazmeah in Style Eventbrite button to match site buttons (or add script to site button)
Very well explained.
I've updated your code. Please let me know if that solves your problem.
<!-- Noscript content for added SEO --> <noscript><a href="https://www.eventbrite.com/e/happy-hour-with-luke-elena-january-tickets-135561675621" rel="noopener noreferrer" target="_blank"></noscript> <!-- You can customize this button any way you like --> <button id="eventbrite-widget-modal-trigger-135561675621" class="sqs-block-button-element--medium sqs-block-button-element" type="button" style="border:none;">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: '135561675621', modal: true, modalTriggerElementId: 'eventbrite-widget-modal-trigger-135561675621', onOrderComplete: exampleCallback }); </script>
-
Timoteo got a reaction from Beyondspace in Style Eventbrite button to match site buttons (or add script to site button)
Site URL: https://www.livewireradio.org/events/20200121
I'm trying to add scripted Eventbrite ticket sales buttons to our events and would like to style them the same as the buttons already on our site but can't figure out how to do it. I'm hoping I can either use a squarespace button and have it run the script below from Eventbrite, or format the button the Eventbrite code generates to the look the same as the others.
Password for site: SSForum
The first button is the standard squarespace button with a link.
The second button is a scripted button using the code below from Eventbrite. We'd much prefer to use the scripted button that brings up a modal for ticket sales but want the style to match the first button on the page.
Here is the code we have for the scripted button:
Appreciate your help!