---
title: "How to place the cart widget in the cart drawer with a CSS selector"
description: "Use the placement helper in the theme editor to put the cart widget into your cart drawer, or into a cart page that takes no app blocks."
url: https://help.shipdockapp.eu/en/articles/11764761-how-to-place-the-cart-widget-in-the-cart-drawer-with-a-css-selector
collection: "Pickup points"
updated: 2026-11-19
language: en
---

# How to place the cart widget in the cart drawer with a CSS selector

Use the placement helper in the theme editor to put the cart widget into your cart drawer, or into a cart page that takes no app blocks.

A cart drawer takes no app blocks, so there the cart widget needs a placement by CSS selector: the element in your theme it should sit next to. The placement helper in the theme editor finds that selector for you, you just click the spot.

## Before you start

-   Set up the cart widget and turn on its app embed, see [How to let customers choose a pickup point in the cart](https://help.shipdockapp.eu/en/articles/11764760.md).
    
-   Use the desktop preview in the theme editor. The helper works only in a preview at least 800 px wide.
    

## Turn on the placement helper

1.  In ShipDock, open **Settings → Widget (Pickup points) → Cart widget settings**. Under **Placement in the cart**, click **Pick element** next to **CSS selector**. The theme editor opens.
    
2.  Under **Cart widget**, turn on **Placement helper (theme editor only)**. The **Cart widget placement** panel appears in the editor preview.
    

![The Cart widget placement panel in the theme editor](https://staticfiles.gleap.io/p68949ce73cfde7b987f63c30/t0y1mrVuX9aaHp8DcfU60E58wOaQSSKqKeaRGvz8DTFIAkFD38e7GHDEV37CqPfTar4Qf13618G.png)

## Pick the spot

3.  In the preview, add a product to the cart and open the cart drawer.
    
4.  In the panel, click **Pick a spot**, hover an element in the drawer and click it. A blue line shows where the widget goes. **Esc** stops picking.
    
5.  Under **Where to insert**, choose **Above**, **Below**, **Inside, start** or **Inside, end**. The live widget appears in the drawer as a preview.
    
6.  Not right? Click **Pick another spot** or **Remove preview**.
    

![The widget preview in the cart drawer](https://staticfiles.gleap.io/p68949ce73cfde7b987f63c30/iwRkUYoxZrvr4n93FycVkkzxcuWS8Af2TIXlT0qFxRWznH1xVNibEYtOKT761x4L7FkmXPzqxZI.png)

> **Tip:** Pick an element that is always in the drawer, for example the subtotal, the tax note or the area around the checkout button. A product line changes with the cart.

## Hand it over to ShipDock

7.  Click **Use in Shipdock**. The cart widget settings open with the new placement filled in, set to **Show on: All pages**.
    
8.  Click **Save**. Nothing is saved until you do.
    

**All pages** makes the widget also appear in a drawer opened from a product page.

If the link does not open, the selector is already copied. In ShipDock, click **Add placement** under **Placement in the cart**, paste it, choose the **Position**, keep **Show on** at **All pages** and click **Save**.

**Above** in the helper is **Before the element** in ShipDock, **Below** is **After the element**.

> **Note:** You can save at most 5 placements. A placement for all pages does not show the widget twice on the cart page: the app block wins there.

## Turn the helper off and check

9.  Back in the theme editor, open **App embeds → Cart widget**, untick **Placement helper (theme editor only)** and save the theme.
    
10.  Click **Open as tester** in the cart widget settings, add a product and open the drawer. The widget should be there. Check the cart page too.
     

Customers never see the helper on your store, even when it is on.

## Troubleshooting

-   **The widget is missing after a theme update:** the theme may have changed its code and the selector no longer matches. Pick the spot again.
    
-   **The helper does not react:** switch the editor preview to desktop, and pick an element inside the cart. The helper picks only elements in your theme's sections.
    
-   **Need help?** Write to us in the chat and we are happy to help you set up the placement for your theme.
    

## Related articles

-   [How to let customers choose a pickup point in the cart](https://help.shipdockapp.eu/en/articles/11764760.md)
    
-   [Cart widget: recommended settings](https://help.shipdockapp.eu/en/articles/11764799.md)
    
-   [Cart widget: limits and how checkout behaves](https://help.shipdockapp.eu/en/articles/11764798.md)

## Related

- [How to add the pickup point widget to your store](https://help.shipdockapp.eu/en/articles/11516895-how-to-add-the-pickup-point-widget-to-your-store.md)
- [How to add the pickup point widget to checkout (Shopify Plus)](https://help.shipdockapp.eu/en/articles/10695859-how-to-add-the-pickup-point-widget-to-checkout-shopify-plus.md)
- [How to add the pickup point widget to the Thank you and Order status pages](https://help.shipdockapp.eu/en/articles/9448644-how-to-add-the-pickup-point-widget-to-the-thank-you-and-order-status-pages.md)
- [How to let customers choose a pickup point in the cart](https://help.shipdockapp.eu/en/articles/11764760-how-to-let-customers-choose-a-pickup-point-in-the-cart.md)
- [Cart widget: limits and how checkout behaves](https://help.shipdockapp.eu/en/articles/11764798-cart-widget-limits-and-how-checkout-behaves.md)
