# Edit Your Variant

{% hint style="info" %}
If you are new to using the Shopify Theme Editor, you can get a quick overview by reading this [official guide from Shopify](https://help.shopify.com/en/manual/online-store/themes/customizing-themes/edit#theme-editor).
{% endhint %}

### Edit in Shopify

<figure><img src="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FCCoPetDmVK6eHpPlCMZX%2FEdit%20in%20Shopify.gif?alt=media&#x26;token=a7fe093e-22e5-47f1-8a39-b01259ea4cbd" alt=""><figcaption><p>Edit in Shopify</p></figcaption></figure>

After duplicating or selecting your variant, you can click **"Edit in Shopify"** to open the Shopify Theme Editor and make direct edits to your template or theme. The Theme Editor automatically opens to your variant template or theme, so you don't need to worry about accidentally editing a live page on your website.

To double-check that you're editing the correct template or theme, make sure that you have you see the variant's name in the Theme Editor. To do so, look at the template name presented in the sections sidebar (on the left) or at the theme name above it. This name will match the variant name shown on the variant card in the Test Draft page. In the above example, the variant template name is **index.sl-CDFD13AE**.

{% hint style="warning" %}
Please be aware if you are editing a live variant template (a template assigned to live pages on your store), your edits will immediately affect your live site. If you are editing an unassigned variant template, your edits will not be live until you launch your test.
{% endhint %}

### Save your edits

When you are finished editing your variant in the Shopify Editor, click 'Save.' Once your changes are saved, you can close the Shopify Editor tab in your browser and return to the Shoplift app to review your test before launching. Your variant previews on the test draft will update to reflect your latest changes.

{% hint style="warning" %}
Always make sure you have saved your latest edits in Shopify before launching a test. Launching a test without saving your edits will result in your live site not representing the changes that were intended.
{% endhint %}

{% hint style="info" %}
**FAQ: Why do my edits show up on my original and variant template previews?**

If making edits in Shopify affected your original template, you likely made theme-level edits to your variant. You should revert these edits and set up a new test by clicking "Test a theme or global element."
{% endhint %}


---

# 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://docs.shoplift.ai/get-started/quickstart/edit-your-variant.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.
