icon-wishlist-heart.liquid
Create the icon-wishlist-heart.liquid file in the snippets folder and add this code:
<svg
class="icon icon-heart icon--{{ size | default: 'medium' }} icon--{{ thickness | default: 'thick' }}{% if stroke_scalable %} icon--stroke-scalable{% endif %}"
aria-hidden="true"
focusable="false"
role="presentation"
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
fill="none"
stroke="currentColor"
viewBox="0 0 256 256"
>
<path d="M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Z"></path>
</svg>
header.liquid
Copy the code below on top of <a href="{{ routes.cart_url }}" [...] aria-controls="CartDrawer" [...]> tag.
<ooo-wl-access-button>
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/wishlist" class="flex items-center justify-center relative cart-icon cart-icon--default">
{%- render 'icon-wishlist-heart', size: 'large'-%}
<span class="visually-hidden">{{ 'templates.wishlist.wishlist' | t }}</span>
<ooo-wl-wishlist-count hidden class="cart-count cart-count--absolute" show-zero="false"></ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
en.default.json
You will need to add the text description of the icon. To do that, add this line in the templatesobject:
"wishlist": {
"wishlist": "Open wishlist"
}
Note: Do not forget to add this translation key to your other locale files.