Step 1 — Choose the counter location
Add a counter next to your wishlist icon so customers can see how many items they have saved. The <ooo-wl-wishlist-count> component updates automatically when items are added or removed.

If you still need to add the icon, start with Add a wishlist icon to your header.
Step 2 — Add the component
Place the counter inside your wishlist link. The following Liquid example assumes your theme provides an icon snippet with a heart icon. Adapt the icon markup to your theme and use the URL of your wishlist page.
<ooo-wl-access-button>
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/wishlist" class="wishlist-link">
<span>Wishlist</span>
{%- render 'icon', icon: 'heart' -%}
<ooo-wl-wishlist-count hidden block-start="0px" inline-end="0px">
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
Keep hidden on the component initially so the badge only appears after the correct count has loaded. The <ooo-wl-access-button> wrapper also handles redirection when login is required.
Step 3 — Position and style the badge
The counter is positioned relative to its parent. Add this rule to your theme stylesheet:
.wishlist-link {
position: relative;
}
Use block-start and inline-end to adjust its position. You can also add your theme’s cart-count CSS class to <ooo-wl-wishlist-count> to reuse the badge styling.
Available attributes
The <ooo-wl-wishlist-count> component supports several attributes:
| Attribute | Description | Default value |
|---|---|---|
hidden |
Set initially to hide the badge until its value is loaded. | Required initially |
block-start |
Distance from the top of the parent element (CSS top) | null |
inline-end |
Distance from the right of the parent element (CSS right) | null |
hide-count |
Hides the number when true, shows only the bubble indicator |
false |
show-zero |
When true, it shows the badge with 0 when the wishlist is empty |
false |
Example for the Impact theme
<ooo-wl-access-button>
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/wishlist" class="relative tap-area">
<span class="sr-only">{{ 'header.general.open_wishlist' | t }}</span>
{%- render 'icon', icon: 'heart' -%}
<div class="header__cart-count">
<ooo-wl-wishlist-count hidden block-start="0" inline-end="0" class="count-bubble">
</ooo-wl-wishlist-count>
</div>
</a>
</ooo-wl-access-button>
Note: This is the code needed to integrate the wishlist icon in Impact’s header.
This example uses Impact’s icon snippet, translation, and badge classes. The relative class positions the badge relative to the link, and block-start and inline-end place it at the top-right corner.
Customize the counter
1. Show badge even when empty (displays 0)
<ooo-wl-wishlist-count hidden block-start="0" inline-end="0" show-zero></ooo-wl-wishlist-count>
2. Hide the number, show only the bubble
<ooo-wl-wishlist-count hidden block-start="0" inline-end="0" hide-count></ooo-wl-wishlist-count>
3. Move badge further down and inward
<ooo-wl-wishlist-count hidden block-start="10px" inline-end="15px"></ooo-wl-wishlist-count>
Wishlist access and accessibility
Keep the <ooo-wl-access-button> wrapper around the wishlist link: it handles the click and redirects guests when Login to use is enabled. Keep a visible or screen-reader label on the link so the heart icon has an accessible name.
Step 4 — Check the result
- Add and remove an item and check that the counter updates.
- Check the empty state with your chosen settings.
- Check the position on desktop and mobile, keeping the badge within the clickable area.