- DarkLight
Hiding the Username in the Reviews Widget
- DarkLight
This article explains how to customize a Yotpo feature using external code. The code is generic and provided as is. Implementation or modification of this code is not supported by Yotpo. We recommend using the services of a developer to integrate this customization into your website.
The Reviews Widget displays a reviewer's first name and last initial by default. The reviewer name is the name provided by the user the first time they leave a review. Even if that same user later changes the name associated with their email account, the initial name will continue to be applied to all future reviews.
Implementation
If you want the name to remain hidden instead, paste the following code in the <head> section of your product template page:
<style>
.yotpo-reviewer-details > .yotpo-reviewer-name {
display: none;
}
.yotpo-reviewer-details-verified > .yotpo-reviewer-name {
display: none;
}
</style>
The result will look like the following: