A WordPress website with Elementor installed.
Access to the Elementor > Custom Code section.
Your DC Bookings domain and shop ID
In your WordPress admin panel, go to the left sidebar.
Navigate to: Elementor โ Custom Code
Click the "New Code" button
Name your custom code snippet something like: DC Bookings
.
In the code editor, paste the following snippet:
<iframe class="dc-bookings" id="dc-bookings" src="https://bookings.d14e.io?domain=YOUR_DOMAIN&shopId=YOUR_SHOP_ID" data-overflow="" style="border: 0px; position: fixed; z-index: 2147483647; width: 100vw; height: 100%; inset: 0px; transition: opacity 0.38s ease 0s; opacity: 0; visibility: hidden;"></iframe>
<script src="https://bookings.d14e.io/dcPortal.js"></script>
<script type="text/javascript">
var dcButtons = document.querySelectorAll('.DC-Bookings-Button');
dcButtons.forEach(function(dcButton) {
dcButton.addEventListener('click', function(){
DCBookings.show();
});
});
</script>
โ Donโt forget to replace:
YOUR_DOMAIN
with your domain
YOUR_SHOP_ID
with your shop ID
Under Location, select: </body> - End
Set Priority to: 1
Then click Publish
To make buttons (or any element) launch the widget:
Open the page with Elementor.
Select any element (button, image, text, etc.)
Under the Advanced tab โ CSS Classes, add:
This will link that element to the scheduler pop-up.
Your DC Bookings scheduler is now embedded on your site and ready to go! Any element with the DC-Bookings-Button
class will now open your widget.