icons.liquid
Copy the code below under the {%- case icon -%} tag.
{%- when 'heart-wishlist' -%}
<svg width="22" height="22" viewBox="0 0 18 16" stroke="currentColor" fill="none" xmlns="<http://www.w3.org/2000/svg>">
<path stroke="currentColor" stroke-width="0.8" stroke-linecap="round" stroke-linejoin="round" d="M9.004 14.152 2.748 8.483c-3.4-3.4 1.598-9.928 6.256-4.647 4.659-5.281 9.635 1.27 6.257 4.647l-6.257 5.668Z"/>
</svg>
header.liquid
Copy the code inside the {%- capture cart_icon_html -%} and above the <a class=”header—cart”
<ooo-wl-access-button class="ooo-wishlist-header-button">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" style="display: grid;">
<span aria-label="{{ 'general.accessibility.open_wishlist' | t }}" style="display:flex;">
{%- render 'icons', icon: 'heart-wishlist' -%}
</span>
<ooo-wl-wishlist-count class="" hidden block-start="-4px" inline-end="-10px" hide-count="false">
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
.ooo-wishlist-header-button { position:relative; }
ooo-wl-wishlist-count { display: flex; justify-content: center; align-items: center; width: 18px; height: 18px; border-radius: 50%; background-color: var(--header--color); color: var(--header--alt-color); }
</style>
Replace [WISHLIST PAGE HANDLE] with your wishlist’s page handle
en.default.json
You will need to add the text description of the icon. To do that, add this line above the blog object:
"accessibility": {
"open_wishlist": "Open wishlist"
},
Note: do not forget to add this translation key to your other locale files.