# How do I publish my quiz?

Ant Quiz Kit allows you to publish your quiz using different methods: on the Home page, the Quiz page, button or link (appears as a popup), or any other page on your Shopify site. In this article, you'll find step-by-step instructions on how to do that.

## Configuring Online store theme

Firstly, you should configure the theme to which you want the Quiz to be published.

Select your quiz (create one first if you haven't already) and click "Edit" in the toolbar and navigate to the Publish page:

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FQptoH6hIeN3oFtxPvyZh%2Fpublish-toolbar.jpg?alt=media&#x26;token=e73f66e0-f816-4415-8908-e2041f851ab0" alt=""><figcaption></figcaption></figure>

On the Publish page, select the theme to publish:

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2F8tzcdKHSeoee23aGxhaI%2Fpublish-select-theme.jpg?alt=media&#x26;token=8368d996-f692-468e-96db-41951d1728fd" alt=""><figcaption></figcaption></figure>

## Add Quiz to a page

Once you select a theme, Ant Quiz Kit will quickly configure your theme to be compatible with the app and create a Page with the quiz:

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FZ5d3x0U27TIgX0pMuvic%2Fpublish-add-to-a-page.jpg?alt=media&#x26;token=1f9520c1-4f7e-4b45-b74e-fd4f1f8cf192" alt=""><figcaption></figcaption></figure>

**IMPORTANT**: If you published your Quiz on a Page and it doesn't look good, follow these instructions to fix it.

## Add Quiz as a Section on a page

If you use Legacy themes (not Online Store 2.0) select "Legacy Themes" tab and follow the instructions:

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FA7W0P7BhodJ7UQaDLk1y%2Fpublish-add-section-legacy.jpg?alt=media&#x26;token=2f0f7fe4-1226-44ec-9bb6-81da8b9e55ca" alt=""><figcaption></figcaption></figure>

When you open the Theme Editor, add the Ant Quiz Kit section to the Home page or any other page that supports sections by clicking "Add Section" and select "Ant Quiz Kit":

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FRPuACkLUBjK5WZyMhHOR%2Ftheme-editor-add-aqk-section.jpg?alt=media&#x26;token=ebd2f310-3737-4b5c-b12b-10172f68b613" alt=""><figcaption></figcaption></figure>

In order to publish your quiz on the Home page **paste the Quiz code** and **save** it in the Theme Editor!

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FZVcx35P0G9eOTWjryL6b%2Fpublish-section-aqk-key.jpg?alt=media&#x26;token=e4af90a5-7b45-41f2-b12c-d9c5f64c0364" alt=""><figcaption></figcaption></figure>

#### Using Online store 2.0 themes

If you use Online store 2.0, adding Quiz as a section on a page is pretty easy.

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FkyYkMXZaPgV8e31DO3UU%2Fpublish-section-2.0.jpg?alt=media&#x26;token=30ebdb8e-1611-4c4c-a516-ec01e9699331" alt=""><figcaption></figcaption></figure>

Copy the quiz code and go to the theme editor and add Ant Quiz Kit section. Paste quiz code into Quiz key field, and save.

## Add Quiz as a button/link anywhere

This feature is available for Middle and higher plans.

Open your quiz and go to the Publish Quiz page. Choose the theme and scroll down the page to the "Embed in a popup", copy Quiz code, and paste it as URL for any button or link on your store.

Quiz will be opened in popup.

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FCYi1O19eInvZVpicW9Xb%2Fpublish-embed-in-popup.jpg?alt=media&#x26;token=90e0ff56-60fe-427b-9602-b839fe0f2314" alt=""><figcaption></figcaption></figure>

## Embed Quiz with a code snippet to any page

Copy the quiz code snippet, and click "Preview code editor":

<figure><img src="https://801999161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBj7Dcuw4A2SgC5bCZ2MG%2Fuploads%2FzSNws9kdjcE5o5tF1NV7%2Fpublish-embed-code-snippet.jpg?alt=media&#x26;token=e8fa72e0-e9f7-4ba3-94e9-31ac0955d981" alt=""><figcaption></figcaption></figure>

Once the code editor opens, add the code snippet to your desired Liquid file.

Don't forget **saving all your changes!**


---

# 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://pb-apps.gitbook.io/ant-quiz-kit/getting-started/how-do-i-publish-my-quiz.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.
