Articles on: Installing widgets on store

Add section in theme manually

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

Add section code:

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

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

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

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

Updated on: 03/13/2024

Was this article helpful?

Share your feedback


Thank you!