icon.liquid
Copy the code below under the {%- case icon -%} tag.
{%- when 'heart-wishlist' -%}
<svg width="28" height="28" viewBox="0 0 18 16" stroke="currentColor" fill="none" xmlns="<http://www.w3.org/2000/svg>">
<path stroke="currentColor" stroke-width="1.25" 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-actions.liquid
Copy the code above the element
{% if settings.cart_type == 'drawer' and template.name ` != ‘cart’ %}`
<ooo-wl-access-button class="ooo-wishlist-header-button header-actions__cart-icon">
<a class="header-actions__action" href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" style="display: grid;">
<span class="svg-wrapper" aria-label="{{ 'accessibility.open_wishlist' | t }}">
{%- render 'icon', icon: 'heart-wishlist' -%}
</span>
<ooo-wl-wishlist-count class="cart-bubble cart-bubble__background" hidden block-start="-1" inline-end="0" hide-count="false">
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style> .ooo-wishlist-header-button .cart-bubble { left: 23px; } </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 to the accessibility object:
"open_wishlist": "Open wishlist"
Note: do not forget to add this translation key to your other locale files.
Emerge
icon.liquid
Copy the code below under the{%- case icon -%} tag.
{%- when 'wishlist-heart' -%}
<svg fill="none" aria-hidden="false" focusable="false" width="{{ width | default: 19 }}" class="{{ class | strip }}" 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 ` {{- search_html -}} >` tag:
<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:block;position:relative;padding-block-start:7px">
<span aria-label="{{ 'layout.header.open_wishlist' | t }}">
{%- render 'icons', icon: 'wishlist-heart' -%}
</span>
<ooo-wl-wishlist-count hidden block-start="2px" inline-end="-13px" hide-count="false">
<div class="cart-bubble"><span class="cart-bubble__text"></span></div>
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style> .cart-bubble { display: block;height:18px;width:18px;background:rgb(0,0,0);color:rgb(255,255,255);text-align:center;border-radius:50%;line-height:18px; } </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 layout -> header object:
"open_wishlist": "Open wishlist"
Note: do not forget to add this translation key to your other locale files.