# Squarespace

## Adding embed code to Squarespace&#x20;

You can add embed code to individual posts in Squarespace and to the menus on your home page.&#x20;

***Steps:***&#x20;

1. From your Squarespace dashboard, open the webpage where you want to add the embed code(**Checkout Button Code**).
2. Find the element on the page where you want the Checkout button, move your cursor over the Page Content area, and then click **EDIT**.
3. Click the insert point where you want to add the embed code(Checkout Button Code).
4. In the More section of the Content Blocks dialog, click Code.
5. From your Create section, copy the Checkout Button Code from the **COPY SCRIPT** pop up.
6. From your Squarespace dashboard, paste the embed code(Checkout Button Code) into the CODE dialog. Make sure that the text field is set to receive HTML.
7. Click **APPLY** on the **EDIT CODE** dialog.
8. Click **SAVE** again on the page editor. Because Squarespace disables JavaScript in its dashboard, you need to preview your page separately to see the Checkout Button that you've added. If you complete the steps and your Checkout Button is not loading, then you might need to disable Ajax loading. To see more details, go to [Enable or disable Ajax](https://support.squarespace.com/hc/en-us/articles/115000253288-Ajax-loading#toc-enable-or-disable-ajax).


---

# 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://xionwiki.gitbook.io/xion-global/create-checkout-buttons/squarespace.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.
