How to Add and Customize a Calendar Widget on Your Website
The Calendar Widget in rezStream Cloud lets you display availability for your entire property or individual units directly on your website. It’s easy to embed and customize using JavaScript and CSS.
Step 1: Generate Your Widget Code
-
In your rezStream Cloud account, navigate to Booking Engine → Website Calendar Script Generator
-
Configure your widget by selecting:
-
Property-wide availability, or
-
Individual units
-
-
Click Generate Script.
Copy the JavaScript code that appears below the preview. Paste it into your website where you want the calendar to appear.
Step 2: Customize the Widget Display
You can adjust what the widget shows by modifying these options in the script generator:
-
HTML Element ID
Specify the HTML id
attribute for the element where the inline calendar should appear on your webpage.
- Filter by Unit or Rate Plan
- Filter by Property
Select one or more properties to limit the calendar view to those specific properties. If left blank, the calendar will display availability and rates for the business as a whole.
- Number of Inline Months
- Display Nightly Rates on Calendar
Tip: Selecting a specific unit and enabling "Display Rates on Calendar" will show nightly prices and expose the promo code entry field if enabled in your system.
Step 3: Style the Widget with CSS
To match your branding or site layout, apply custom styles using CSS.
Here’s a basic example to stretch the calendar widget horizontally:
.rs-sc-field {
margin: 5px;
display: inline-block;
}
Tip: Add this CSS to your site’s stylesheet or inline, depending on your website platform.
For more information about advanced features of the Calendar Widgets see Advanced Calendar Widget Options.