icons.liquid
Copy the code bellow under the {%- case icon -%} tag:
{% when 'heart' %}
{%- assign svg = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="false" focusable="false" width="28" viewBox="0 0 18 16"><path stroke="currentColor" 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 below under the {% if shop.customer_accounts_enabled and section.settings.disable_online_store == false %} [...] {%- endif -%} if statement.
<ooo-wl-access-button class="ooo-wishlist-header-button">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/wishlist" class="relative tap-area" style="display:block;position:relative;">
<span class="account-button header-actions__action" aria-label="{{ 'general.accessibility.open_wishlist' | t }}">
{% render 'icons', icon: 'heart' %}
</span>
<ooo-wl-wishlist-count hidden inline-end="-12px" hide-count="false" show-zero="true">
<span class="cart-bubble__text" style="display:grid;justify-content:center;"></span>
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
ooo-wl-access-button a { color:inherit!important }
ooo-wl-wishlist-count { --ooo-wl-count-badge-block-start:-9px;background:var(--scheme-3_primary_btn_bg);color:var(--scheme-3_primary_btn_fg);min-width:21px;height:21px;border-radius:100%;font-size:var(--size_12); }
@media screen and (max-width: 760px) { ooo-wl-wishlist-count {--ooo-wl-count-badge-block-start: 3px;} .cart-bubble__text {transform:translateY(-13px)} }
@media screen and (max-width: 400px) { .ooo-wishlist-header-button { display: none; } }
</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 in the general -> accessibility object:
"open_wishlist": "Open wishlist"
Note: do not forget to add this translation key to your other locale files.