The embedded review widget displays your latest reviews in a floating panel that visitors can access from any page.
Enabling the Widget
- Go to Trustie > Designer > Widget
- Check Enable Review Widget
- Configure position and content
- Save changes
The widget appears on all public pages by default.
Widget Position
Vertical Position
| Option | Description |
|---|---|
| Top | Widget tab near top of screen |
| Middle | Widget tab at vertical center |
| Bottom | Widget tab near bottom of screen |
Horizontal Position
| Option | Description |
|---|---|
| Left | Widget slides out from left edge |
| Right | Widget slides out from right edge |
Most sites use Right + Middle or Right + Bottom.
Widget Content
Reviews to Display
| Setting | Description |
|---|---|
| Reviews Count | How many reviews to show (3-10) |
| Sort Order | Latest, highest rated, or random |
| Minimum Rating | Only show reviews at X stars or above |
Content Options
| Setting | Description |
|---|---|
| Show Product | Display product name with each review |
| Show Date | Display when review was posted |
| Show Avatar | Show customer initials or photo |
| Truncate Text | Limit review text length |
Widget Styling
Colors
Set widget colors in Trustie > Designer > Colours > Widget Colours:
| Setting | Description |
|---|---|
| Tab Background | Color of the collapsed tab |
| Tab Text | Text/icon color on tab |
| Header Background | Top bar when expanded |
| Header Text | Title text when expanded |
Tab Appearance
| Setting | Description |
|---|---|
| Tab Label | Text shown on collapsed tab |
| Tab Icon | Icon next to label (star, chat, etc.) |
| Tab Width | Width in pixels |
Animation
| Setting | Description |
|---|---|
| Animation Speed | How fast the widget opens/closes |
| Auto-Open | Automatically open after X seconds |
| Auto-Open Delay | Seconds before auto-opening |
| Remember State | Remember if visitor closed it |
Widget Shortcode
You can also embed the widget content inline:
[trustie_widget_reviews limit="5"]This displays the same content without the floating panel.
Mobile Behavior
The widget automatically adjusts for mobile:
- Tab moves to bottom on narrow screens
- Panel opens as full-width overlay
- Touch-friendly close button
- Respects reduced-motion preferences
Disable on Mobile
If the widget feels intrusive on mobile:
- Go to Trustie > Designer > Widget
- Check Hide on Mobile
- Set breakpoint (default: 768px)
Page Targeting
Show on Specific Pages
By default, the widget appears everywhere. To limit it:
- Go to Trustie > Designer > Widget
- Under Page Targeting, select Show only on:
- Choose pages:
– Home page
– Product pages
– Cart/Checkout
– Custom pages (by URL)
Hide on Specific Pages
Alternatively, hide the widget on certain pages:
- Select Hide on:
- Enter page URLs or patterns
- Use
for wildcards (e.g.,/checkout/)
Accessibility (WCAG 2.1 AA)
The widget meets WCAG 2.1 Level AA accessibility standards:
- Keyboard navigable (Tab to open, Escape to close)
- Visible focus indicators on all controls using your brand’s primary colour
- Screen reader announcements for form submissions (success and error)
- Descriptive aria-labels on filter buttons (“Show all reviews”, “Show Google reviews”, etc.)
- Decorative avatars hidden from screen readers
:focus-visibleensures keyboard users see focus rings while mouse users don’t- Respects
prefers-reduced-motion - Sufficient color contrast (check your colors!)
Performance
The widget is lightweight:
- ~15KB JavaScript (gzipped)
- Reviews load asynchronously
- Cached for 1 hour
- No impact on Core Web Vitals
Lazy Loading
Reviews load only when the widget is opened:
- Page loads with just the tab
- User clicks tab
- Reviews fetch via AJAX
- Content displays
This keeps initial page load fast.
Troubleshooting
Widget not appearing
- Is it enabled? Check Trustie > Designer > Widget
- Are you logged in? Widget may hide for admins
- Check page targeting settings
- View page source for
trustie-widgetcontainer
Widget overlaps content
Adjust the position:
- Change vertical position
- Add CSS margin to your content
- Use z-index to layer correctly
.trustie-pro-widget {
z-index: 9998;
}Reviews not loading
- Check browser console for errors
- Verify reviews exist and are approved
- Check AJAX endpoint is accessible
- Disable caching plugins temporarily
Styling conflicts
If your theme overrides widget styles:
.trustie-pro-widget * {
all: revert;
}Or increase specificity:
body .trustie-pro-widget__panel .trustie-review-card {
/ your overrides /
}CSS Classes
For custom styling, the widget uses these classes:
| Class | Element |
|---|---|
.trustie-pro-widget | Main container |
.trustie-pro-widget__tab | Collapsed tab |
.trustie-pro-widget__panel | Expanded content area |
.trustie-pro-widget__header | Panel header |
.trustie-pro-widget__close | Close button |
.trustie-pro-widget__content | Reviews container |
.trustie-pro-widget--open | Applied when expanded |