Skip to main content

Fallback for users without a profile picture

You've added profile picture to your Gmail signature template. But what if some users don't have a profile picture in Google Directory?

Tanya Babina avatar
Written by Tanya Babina
Updated over 8 months ago

In Florbs, there are two options for handling users who have not set a profile picture:

1. Empty space

This option displays a blank space when no profile image is available. To set this up, modify the code as shown in the following example:

{{#profileImage}} image {{/profileImage}}

2. Default image

Alternatively, you can display a default image when no profile picture is set. To implement this, modify the code as follows:

{{#profileImage}}
This will be displayed if the user has a profile image
{{/profileImage}}
{{^profileImage}}
This will be displayed if the user does not have a profile image
{{/Image}}

More Information

Florbs uses Mustache syntax in Gmail signature templates. You can learn more about Mustache syntax here: Mustache.js GitHub

Did this answer your question?