Common CSS customizations

In this article

This article outlines how to further customize your badge display and layout with custom CSS. View our device management guides to learn more about printer setup, supported printers and supported badges.

Important notes

  • If you have multiple visitor types, you’ll configure this setting per visitor type.
  • These instructions only work if you’re using Envoy badges or Brother DK-1202 model badges. Please check the back of your badges to ensure you see 202 beside the black box.

Enabling custom CSS

  1. Go to Visitors > Settings > Sign-in flow page.
  2. Select the visitor type you wish to edit.
  3. Select Badge from the top navigation.
  4. Locate Badge CSS and click “Enable.” CSS
  5. Locate the CSS rules with line numbers on the left side of the text area. Refer to these line numbers when copying and pasting the modifications that follow. CSS
    • If you see the “Reset to default” link, click it now to reset all CSS code to the Envoy default. CSS
  6. Make edits to the CSS based on guides below. Note that as you make changes, they’ll appear live in the badge preview.
  7. Once you like the preview, click “Save.”

Common badge design changes

Below, you’ll find instructions for a few of the most common design requests we receive. All of these changes are easy to make with tweaks to the badge CSS.

Change the badge font

You can print your badges in any iOS supported font.

  1. Choose a font from the supported list found here.
  2. Locate line 18.
  3. Replace Cera Pro with your preferred font name. Here, we’ve changed it to Georgia-Bold.

Make the visitor photo larger

You can resize the visitor photo to be larger or smaller than the default. 

  1. Locate line 83 in your CSS area.
  2. Copy and paste the code below to replace line 83 through line 99.
.photo img {
  width: 400px;
  border-radius: 50%;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

.visitor-info {
  width: 100%;
  text-align: center;
}

.photo + .visitor-info {
  width: 600px;
  text-align: left;
  float: right;
}

To make further adjustments, locate width: 400px on line 84 and width: 600px on line 96. You can edit these numbers to meet your needs. Note that these two numbers must add up to 1000px.

Make the visitor photos square

You can change the visitor photos to appear square instead of round. Choose hard corners or rounded corners.

  1. Decide if you’d like hard corners or round corners.
  2. Locate line 85 in your CSS area.
    • For squares with hard corners: copy and paste this code to replace line 85
border-radius: 0%;
  • For squares with round corners: copy and paste this code to replace line 85
border-radius: 20%;

Change the size of the visitor name

You can resize the visitor name to be larger or smaller than the default. 

  1. Locate line 110. If your visitor has a short name, first and last name fit on one line on the badge. This CSS line controls the size of this text.
  2. Modify line 110 as needed:
    • Numbers larger than 100px will make the text larger.
    • Numbers smaller than 100px will make the text smaller.
  3. Locate line 102. If your visitor has a long name, the last name will wrap down to the next line on the badge. This CSS line controls the wrapped line of text.
  4. Modify line 102 as needed:
    • Numbers larger than 74px will make the text larger.
    • Numbers smaller than 74px will make the text smaller.

Make the visitor information text larger or smaller

Make the display for your Custom Field 1, Custom Field 2, Time of Entry, and Custom Message larger or smaller. 

  1. Locate line 19 in your CSS area.
  2. Modify line 19 as needed:
    • Numbers larger than 40px will make the text larger.
    • Numbers smaller than 40px will make the text smaller.

Move visitor information down

Move the visitor information further away from the logo at the top. 

  1. Locate line 72 in your CSS area.
  2. Modify line 72 as needed:
    • Numbers larger than 50% will move the visitor information down.
    • Numbers smaller than 50% move the visitor information up.