header-actions.liquid
Copy the code below under the {%- if shop.customer_accounts_enabled -%} [...] {%- endif -%} if statement.
<ooo-wl-access-button class="ooo-wishlist-header-button header-actions__cart-icon">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/wishlist" class="relative tap-area" style="display: block;">
<span class="account-button header-actions__action" aria-label="{{ 'accessibility.open_wishlist' | t }}">
<span class="account-button__icon svg-wrapper" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" fill="none" stroke="currentColor" style="--icon-size-md: 18px" viewBox="-0.5 0 21 21">
{% render 'icon', icon: 'heart' %}
</svg>
</span>
</span>
<ooo-wl-wishlist-count hidden show-zero="false" block-start="5px" inline-end="0px" ></ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
@media screen and (max-width: 350px) { .ooo-wishlist-header-button {display: none;} }
ooo-wl-wishlist-count { position: absolute; aspect-ratio: 1; width: var(--cart-bubble-size, 20px); top: var(--cart-bubble-top); right: var(--cart-bubble-right); color: var(--color-primary-button-text); background-color: var(--color-primary-button-background); border-radius: var(--style-border-radius-lg); display: flex; align-items: center; justify-content: center; }
ooo-wl-wishlist-count span { font-family: var(--font-paragraph--family); font-weight: var(--font-paragraph--weight);}
ooo-wl-access-button .svg-wrapper { height: var(--button-size); width: var(--button-size); }
</style>
Replace [WISHLIST PAGE HANDLE] with your wishlist’s page handle and [ICON] with “heart” or “star” to select a heart or a star icon.
en.default.json
You will need to add the text description of the icon. To do that, add this line to the accessibility object:
"open_wishlist": "Open wishlist"
Note: do not forget to add this translation key to your other locale files.