I am trying to make the background color of my Calendly widget transparent, but I can't figure out how to do it.
I am trying to make this color transparent
Changing the color in the URL also doesn't work, the URL only accepts RGB hex codes instead of RGBA hex codes.
I tried changing the color with a style tag in the div at first, but it gets overwritten.
<div class="calendly-inline-widget" data-url="https://calendly.com/caroline-williams/30min?month=2023-02e?hide_event_type_details=1&hide_gdpr_banner=1" style="min-width:320px;height:630px;">
</div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js">
</script>
<style>
.calendly-inline-widget {
background: transparent !important;
}
</style>
I also copied the javascript given by Calendly and added a new variable in the widget.js like so:
buildContent() {
const t = document.createElement("div");
return (
(t.className = "calendly-badge-content"),
"#ffffff" === this.options.color &&
"transparent" === this.option.trans &&
(t.className += " calendly-white"),
(t.onclick = this.options.onClick),
(t.innerHTML = this.options.text),
(t.style.background = this.option.trans),
(t.style.color = this.options.textColor),
this.options.branding && t.appendChild(this.buildBranding()),
t
);
And also added the css that Calendly uses in the head of my html, which gives back a white background (https://i.stack.imgur.com/dfQDo.png)
I am trying to change the color into: rgba(217, 168, 45, 0.5) Hex code: #d9a82d80
I want to inline embed this into a WordPress website
Does anyone know how to solve this problem?
I ran into the same problem:
Hope this helps!