Skip to main content
All CollectionsTrust Reviews
Add section in theme manually
Add section in theme manually
Shahroz Qureshi avatar
Written by Shahroz Qureshi
Updated over 7 months ago

How to add section in theme code manually? Follow the steps below:

Add section code:

1- Go to theme code editor.
2- Create a new liquid file in 'sections' folder.
3- Copy the following code:

<div id="trustreviews" class="page-width" data-product-id="{{ product.id }}">
{{ product.metafields.trustreviews.iframe }}
</div>

{{ shop.metafields.trustreviews["global_html_body"] }}

{% schema %}
{
"name": "TrustReviews Widget",
"presets": [{
"name": "All reviews - Grid",
"category": "Trustreviews"
}]
}
{% endschema %}

Did this answer your question?