Show Content from Another Page or Product in Shopify Template

I needed to display reviews from the Reviews page on a few select Pages and Products in a Shopify theme.

Assign a variable for the page data:

 {% assign reviewPage = pages['review'] %}

Use the variable in conditional logic and field functions:

{% if reviewPage.metafields.review_1.review_1 != blank %}
        <div class="review-slide">
          {{ reviewPage.metafields.review_1.review_1 }}
{% endif %}


Additional information about Page Handles.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.