Experience the difference of "Elite".

Getting Started

Core Concepts

Overview

Bookings

Bookings & Quotes

Damage Protection

Data Management

Email Template Library

Guests

Hosted Websites

Integrations

Listing Site Integration

Messaging

My Account

Payment Processing

Privacy & Security

Properties

Property Management

Property Sharing

Quotes

Rates

Renter Agreements

Reporting

Reviews

Rules

Security Deposits

Suppressed Email Addresses

Taxes

Technical Stuff

Travel Insurance

Verified Email Domains

Widgets

WordPress Plugin

Channel Management

Integrations

OwnerRez API

Payment Processing

Testing

Change Log

2022

2021

2020

2019

Widgets - CSS Magic

This page contains notes on CSS snippets that can be used in Widgets to do various things.  You can also use a different set of CSS snippets to make changes to your Hosted Website.

WARNING: These are coding magic and are not guaranteed to be supported forever. We will attempt to keep this page up-to-date, and not to make changes to Widget functionality needlessly, but this cannot be a promise.

Individual widgets have their own CSS which can be controlled, to affect how they display on the pages where they are used.  CSS snippets can be added to your Widgets by navigating to Settings > Widgets > click the desired Widget > Change button > scroll down to the CSS field.  Just drop the code snippet on a separate line(s) in the field block, and save.

Contents

Book Now/Inquiry Widget

Remove Dates/Size

Sometimes you just want a contact us form, without actually sending in a full inquiry. You can do this by editing the CSS on the inquiry/booking widget itself.

*NOTE* This must be set directly in the widget CSS, not on the hosted website CSS settings. As such it will work for widgets regardless of whether you have a hosted website or not.

Also, if you use this option, make sure to turn off date validation in the widget settings!  Otherwise, the widget will reject every inquiry because it doesn't include any dates, but they can't include dates because you turned them off.

.date-holder,
.size-holder,
#group-DiscountCode
{
display:none;
}

Remove Contact Info/Make A Quote Viewer

Sometimes you just want to show a quote, without a bunch of fields where the guest thinks they have to enter the contact info first. You can do this by editing the CSS on the inquiry/booking widget itself.

*NOTE* This must be set directly in the widget CSS, not on the hosted website CSS settings. As such it will work for widgets regardless of whether you have a hosted website or not.

Also, if you use this option, you may want to set the "Quote Without Occupancy" option on the widget so it quotes immediately when dates are entered -- particularly if you have no guest fees so the quote will be the same regardless of number of guests selected.

#group-Name,
#group-Email,
#group-Phone,
#group-DiscountCode,
.comments-holder,
.book-button-holder,
.inquiry-button-holder
{
display:none
}

Change Button Name

This changes “Search” to “Find Your Stay”.  You can replace “Find Your Stay” with some other text if you prefer.

.btn[type=submit]:before {
  content: "Find Your Stay!";
  font-size: 14px;
}

.btn[type=submit] {
  font-size: 0;
}

Change "Properties" Dropdown Name

This changes “Properties” to "Packages”.  You can replace “Packages” with some other text if you prefer.

.form-group label[for=PropertyKeyx] {
  visibility: hidden;
}
.form-group label[for=PropertyKeyx]:before {
  content:'Packages';
  visibility: visible;
}

Remove Comments Field and Inquiry Button

This results in a pure "book now" form, no inquiries or questions allowed.

.comments-holder,

.inquiry-button-holder
{
display:none
}

Change Discount Code Name

If you are using Discount Codes and that field is included in your Book Now form, but you want to call them something else like "Promotion Code":

label[for=DiscountCode] {
  visibility: hidden;
}
label[for=DiscountCode]:before {
  content: "Promotion Code";
  visibility: visible;
}

Adjust Input Borders and Backgrounds

You can use this code as a starting point for adjust the backgrounds and borders of the form inputs.

.form-control {
background-color: #ffffff;
border-color: #cccccc;
}
.input-group-addon {
background-color: #f1f1f1;
border-color: #cccccc;
}
.btn-default {
background-color: #f1f1f1;
border-color: #cccccc;
font-weight: bold;
}
.form-group>label {
font-weight: bold;
}

Calendar Widget

Shrink Width

Sometimes, if you are including Rates on your Calendar Widget, the display gets wider, but your website doesn't automatically adapt to it and the edges are cut off.  You can fix this with the following code:

.flex-calendar.has-rates .day-content
{
    width: 28px;
    overflow: hidden;
}

Change Color for Past Dates

We use a color based on the blocked color to show past dates and other out of range dates. If you want to set your own color, use with the following code.

"#999999" is just a medium gray, but you can change that to something else. Go to Hex Color Picker to find a color you like. Copy the "HEX" value for your color, and replace the "#999999" with your color HEX (be sure the # sign is present after changing the value).

.flex-calendar .flex-calendar-out-of-range {
    background: #999999 !important;
}

Ribbon Calendar Widget

Remove Today/Holiday Legend

You may not use holidays so you don't want "today" and "holiday" legend to show.  To remove the legend from the top-right corner, insert this CSS:

#legend {display:none;}

Reviews Widget

Change Star Color

.review-average > .review-average-stars { color: gold; }
.fas { color: gold; }

If you'd rather have some other color, use this online color picker to find one, and replace the word "gold" in the above code with the HTML hex code of your selection - the 7 character code starting with a pound sign # and followed by 6 more alphanumeric characters.

Hide The Filter Bar

.reviews-filter-bar { display: none } 

Availability/Property Search Widget: Change Font Color

.property-result-list.property-result-tiles .property-result-tile {color:white;}

Using a Custom Font in a Widget

To override fonts on a widget, you'll need a source for fonts such as https://fonts.google.com/

To get CSS from there:

  1. Pick the font and add the style
  2. Review the selected style and switch it to @import mode
  3. Copy the @import

So for example, for this font in the screenshot you'd end up adding this CSS to the widget:

@import url('https://fonts.googleapis.com/css2?family=Akaya+Telivigala&display=swap');

*
{
    font-family: 'Akaya Telivigala', cursive;
}

CSS Tutorials

If you don't know CSS and are curious, or know a bit and want to brush up, here are a couple of tutorial sites...

https://htmldog.com/guides/css/beginner/  -- has a good level of detail for a beginner, and they've got intermediate and advanced if you get fancy later 😉​

And the Mozilla site is a good reference and other tutorials: https://developer.mozilla.org/en-US/docs/Learn/CSS