Floating badge styles

We can change the style with parameters for badgeStyle.

  • hideBranding - hide/show Calendly’s branding
  • align - left/right/center
  • bgColor - the background color
  • textColor

On this demo page I will embed the parameters in the shortcode directly. Take note that we could also set those in the site configuration, the page’s front matter, or use a data file. For more information on that, visit the parameters overview page.

Change badge alignment

The default alignment is to the right. Other values available are center and left.

Changing colors

As with other colors, the shortcode needs hex colors. Either with leading hash character (eg. “#ffffff”), or without (ffffff).

Hide branding

By default, Calendly will add its own branding. We can set badgeStyles.hideBranding to true to turn that off.

Example

Let’s align the badge to the left, hide the branding, and use some colors from this palette to make it stand out a bit.

I’ll use the bright yellow (#eadd46) as background, and dark green (#485123) as text:

{{< calendly 
      calendar="bespokesy" 
      type="popupWidget" 
      text="Let\'s have a chat!" 
      badgeStyle.bgColor="#eadd46" 
      badgeStyle.textColor="#485123" 
      badgeStyle.align="left"
      badgeStyle.hideBranding=true
/>}}

What it looks like

Look at the bottom left of this page. If you can’t spot it, I might need to pick more outrageous colors next time.

Parameters overview

Check out all parameter options, and where to embed them in the overview.