I’m working on integrating a Calendly scheduling widget into my WordPress site and need to make the background semi-transparent. The default white background doesn’t blend well with my page design.
I’ve attempted several approaches without success:
- Using CSS styles directly on the container div, but they get overridden
- Modifying the URL parameters (only supports standard hex colors, not RGBA)
- Trying to customize the widget.js file
Here’s my current setup:
<div class="scheduling-widget-container" data-url="https://calendly.com/john-smith/consultation?month=2023-03&hide_event_type_details=1&hide_gdpr_banner=1" style="min-width:300px;height:600px;">
</div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js">
</script>
<style>
.scheduling-widget-container {
background: rgba(0,0,0,0) !important;
}
</style>
I also attempted to modify the buildContent function:
createWidget() {
const container = document.createElement("div");
container.className = "booking-widget-content";
if ("#ffffff" === this.settings.backgroundColor && "transparent" === this.settings.opacity) {
container.className += " widget-transparent";
}
container.style.background = this.settings.opacity;
container.style.color = this.settings.fontColor;
return container;
}
My goal is to achieve a semi-transparent gold background: rgba(217, 168, 45, 0.5). Has anyone successfully implemented transparent backgrounds with Calendly widgets?