Skip to main content

Alex theme

Please note: Star rating only appears when there's at least one approved review of the product

Open your shop theme#

  1. Go to your Shopify Themes menu
  2. Click the Actions menu and then select Edit code

In order to move the review section to tab#

  • Open snippets/product-template.liquid file
  • Copy this code:
<div class="scm-container custom" style="display: none;">  <div id="scm-reviews-importer" class="scm-reviews-importer">      <iframe id="scm-reviews-importer-iframe" width="100%"></iframe>  </div></div>
  • Paste it under this code:
</li>    <li {% if == "3" %}class="active"{% endif %} id="tab3">
  • Copy this code and paste it at the end of file
<script>  document.addEventListener("beforeScrollToReviewWidget", function (e) {    let reviewButton= document.querySelector('.tabs li a[href="#tab3"]');;  });</script>