# Unpublished Shopify theme

You can install Ryviu app for your unpublished theme by referring to the instruction below.<br>

{% hint style="info" %}
***Required:** You need to install Ryviu for your store before taking this process. If you have not, then please install it from here:* [*Install Ryviu app for Shopify store*](https://docs.ryviu.com/en/articles/1057949-how-to-install-ryviu-app-on-your-shopify-store)*.*
{% endhint %}

* Login to your Shopify admin > **Online store** > **Themes** > **Actions** section. Then "**Edit code**" on the Shopify theme which you want to install Ryviu snippet codes.

![](/files/-MJjMKbgkzI-3v4vIKZG)

* Copy the Ryviu global setting code below for your theme.liquid file:

```markup
<!-- RYVIU APP :: Settings global -->	
<script>var ryviu_global_settings = {{shop.metafields.ryviu.user_settings }};</script>
<!-- RYVIU APP -->

```

* And add the code you've copied right before this code  **\</head>**
* Install Ryviu widget to display comments for your product page, open **Templates**/**product.liquid,** and paste the code below at the bottom of the file. The reviews will appear at the bottom of your product page. You can customize the place of reviews by moving the code to the place you desire.

```markup
<!-- RYVIU APP :: WIDGET -->
<div class="lt-block-reviews">
    <ryviu-widget handle="{{product.handle}}" product_id="{{product.id}}" title_product="{{product.title}}" image_product="{{ product.featured_image.src | img_url: '100x' }}"></ryviu-widget>
</div>
<!-- / RYVIU APP -->

```

* Install Star ratings for your product page. Normally, you can do it by adding the code below to your **product-template.liquid** or **product-meta.liquid** file, then add it below the tag. If you cannot find this file, your theme may have been customized. You can contact us for more help.

```markup
<!-- RYVIU APP :: WIDGET-TOTAL -->
<div class="review-widget">
    <ryviu-widget-total reviews_data="{{product.metafields.ryviu.product_reviews_info  | escape  }}" product_id="{{product.id}}" handle="{{product.handle}}"></ryviu-widget-total>
</div>
<!-- / RYVIU APP --> 

```

* Install Star ratings for your collection page. Open **product-card-grid.liquid** or **product-card.liquid** or **product-grid-item.liquid** or **product-thumbnail.liquid** or **product-info.liquid** file **(*****each theme has a different name's file*****)** in **Snippets,** add the code below the line of code contain this **{{ product.title }}**

```markup
<!-- RYVIU APP :: COLLECTION-WIDGET-TOTAL --> 
<div class="ryviu-collection">
    <ryviu-widget-total collection=1 reviews_data="{{product.metafields.ryviu.product_reviews_info  | escape  }}" product_id="{{product.id}}" handle="{{product.handle}}"></ryviu-widget-total>
</div>
<!-- RYVIU APP -->

```

Should you have any questions, please contact us via email or live chat.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ryviu.gitbook.io/ryviu-document/guides-for-shopify-users/unpublished-shopify-theme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
