Don't Show Trustpilot Product Review Widget When There's No Reviews

Topic summary

A user is implementing a Trustpilot product review widget on their Shopify store using the Warehouse theme and wants to hide the widget container when no reviews exist for a product.

Current Implementation:

  • The widget code includes data-no-reviews="hide" attribute
  • Despite this setting, the container still displays when empty

Proposed Solution:

  • One contributor suggests changing the attribute to data-no-reviews="collapse" instead of “hide”

Status:

  • The issue remains unresolved for the original poster
  • Multiple users have encountered the same problem
  • No confirmation yet on whether the “collapse” solution works effectively
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

HI,

I’m in the process of updating our website to the warehouse theme.

We have implemented a truspilot widget on our product pages.

I would like for the trustpilot container not to show when it is blank. It is blank when there are no reviews associated with a product.

Regards,

Jason

Trustpilot Reviews

{% schema %}
{
“name”: “Section name”,
“settings”:
}
{% endschema %}

{% stylesheet %}
{% endstylesheet %}

{% javascript %}
{% endjavascript %}

Trustpilot Reviews

{% schema %}
{
“name”: “Section name”,
“settings”:
}
{% endschema %}

{% stylesheet %}
{% endstylesheet %}

{% javascript %}
{% endjavascript %}

Hi jason,

Have you been able to solve the issue, if not I would love to do that. Feel free to send me a personal message.

Regards,
Kamal

Can you please let us know how we can do this. I am getting the same.

Hi @mkamalkayani , did you have any success with this?

Hi @MooseDeveloper , I didn’t work on it.

data-no-reviews="collapse"