Mini-cart hook placement reference

Setting Classic template position
Before mini-cart Before the mini-cart contents
Before mini-cart contents Immediately before item rows
Mini-cart contents Within the contents area
Shopping cart total At the widget total hook
Before shopping cart buttons Before View cart/Checkout actions
After shopping cart buttons After those actions
After mini-cart After the complete mini-cart

Theme template overrides can move or omit a hook. Verify the active template rather than relying only on the label.

Placement test

  1. Put a short unique marker in one field.
  2. Open the mini-cart with one item.
  3. Change quantity or contents so WooCommerce refreshes fragments.
  4. Confirm the marker appears once in the intended location.
  5. Repeat with an empty cart if the theme renders one.
  6. Remove the marker and add the final content.

Avoid placing block-level markup where the hook sits inside a paragraph, list, or table-like structure. Inspect the rendered HTML and test keyboard navigation.