# Add Shoprocket to a Ghost site

> Sell from your Ghost publication. Add an HTML card to a post or page, paste your embed code, and publish. Add one line to Code injection so the cart works across your whole site.

Help Centre / Embedding - Updated 19 November 2026

You can sell from your Ghost publication with Shoprocket, right inside your posts and pages. You make an embed in Shoprocket, then paste its code into an **HTML** card. The cart and checkout open on your own site.

## Before you begin

- Add at least one active product in Shoprocket.
- You need permission to edit posts or pages. For Step 3, you also need access to your site's settings.

## Step 1: Get your embed code

1. In your Shoprocket dashboard, go to **Embeds** and click **New embed**.
2. Choose what it shows and a layout, then click **Continue**. A single product with a **Card** layout suits a blog post well.
3. Click **Save & get code**, then **Copy code**.

![The Get code panel with site builder tabs, the embed code and the Copy code button](https://shoprocket.io/img/help/embed-on-any-website/get-code.webp)

For more on the layouts you can pick, see [Embed Shoprocket on any website](https://shoprocket.io/help/embed-on-any-website.md).

## Step 2: Paste the code into an HTML card

1. Open the post or page in the Ghost editor.
2. On a new line where the shop should go, click the **+** button and choose **HTML**. You can also type `/html`.
3. Paste your code into the card.
4. Click **Publish** or **Update**.

Open the post on your live site to see the shop. The editor shows the code, not the shop.

If you send the post as a newsletter, the email shows only the text and images. Email apps don't run shop code, so add a link to the post for readers who want to buy.

## Step 3 (recommended): Add Shoprocket to your whole site

Your floating cart and live chat only show on pages that load Shoprocket. One line in your site header loads it everywhere.

1. In **Embeds**, click **Copy** on the **Add Shoprocket to every page of your site** card.
2. In Ghost, open **Settings**, then **Code injection**.
3. Paste the line into the **Site header** box and click **Save**.
4. Open any page of your site. Back in **Embeds**, the card changes from **Not seen yet** to **Connected**.

Once the line is in your site header, paste only the last line of your embed code into each post, the one starting `<div`.

## If the shop doesn't appear

- **The card is set for members only.** HTML cards can be shown only to free or paid members. Check the card's visibility if some readers can't see the shop.
- **You pasted into a Markdown or text card.** Use an **HTML** card, so Ghost keeps the code as it is.

## Related

- [Embed Shoprocket on any website](https://shoprocket.io/help/embed-on-any-website.md)
- [Embed one product or a category](https://shoprocket.io/help/embed-a-single-product-or-category.md)
- [Replace your old Shoprocket code](https://shoprocket.io/help/replace-old-shoprocket-code.md)

[Open Embeds in your dashboard](https://app.shoprocket.io/go/embeds)

---

- HTML version: https://shoprocket.io/help/add-shoprocket-to-ghost
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/help/add-shoprocket-to-ghost.md), [Deutsch](https://shoprocket.io/de/hilfe/shoprocket-zu-ghost-hinzufuegen.md), [Ελληνικά](https://shoprocket.io/el/help/add-shoprocket-to-ghost.md), [Español](https://shoprocket.io/es/ayuda/anadir-shoprocket-a-ghost.md), [Français](https://shoprocket.io/fr/aide/ajouter-shoprocket-a-ghost.md), [עברית](https://shoprocket.io/he/help/add-shoprocket-to-ghost.md), [हिन्दी](https://shoprocket.io/hi/help/add-shoprocket-to-ghost.md), [Bahasa Indonesia](https://shoprocket.io/id/bantuan/tambahkan-shoprocket-ke-ghost.md), [Italiano](https://shoprocket.io/it/aiuto/aggiungere-shoprocket-a-ghost.md), [日本語](https://shoprocket.io/ja/help/add-shoprocket-to-ghost.md), [Lietuvių](https://shoprocket.io/lt/pagalba/shoprocket-ghost-svetainei-prideti.md), [Norsk](https://shoprocket.io/nb/hjelp/legg-til-shoprocket-i-ghost.md), [Nederlands](https://shoprocket.io/nl/hulp/shoprocket-toevoegen-aan-ghost.md), [Polski](https://shoprocket.io/pl/pomoc/dodaj-shoprocket-do-ghost.md), [Português](https://shoprocket.io/pt/ajuda/adicionar-shoprocket-ao-ghost.md), [Română](https://shoprocket.io/ro/ajutor/adauga-shoprocket-pe-ghost.md), [Русский](https://shoprocket.io/ru/help/add-shoprocket-to-ghost.md), [ไทย](https://shoprocket.io/th/help/add-shoprocket-to-ghost.md), [Türkçe](https://shoprocket.io/tr/yardim/shoprocket-ghost-sitesine-ekleme.md), [中文](https://shoprocket.io/zh/help/add-shoprocket-to-ghost.md)
