header.liquid
Copy this code above the {%- if template != 'cart' -%} {% if settings.cart_type == "drawer" %} ... tag:
<ooo-wl-access-button class="ooo-wishlist-header-button header__icon" style="position:relative;padding-left: 6px;">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]">
<span aria-label="{{ 'accessibility.open_wishlist' | t }}">
{% render 'icon-heart' %}
</span>
<ooo-wl-wishlist-count hidden block-start="-1" inline-end="0" hide-count="true" style="display:none;">
</ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
.ooo-wishlist-header-button .icon-heart { width: 2.375rem; height: 2.375rem; }
@media screen and (min-width: 990px) { .ooo-wishlist-header-button .icon-heart { width: 1.625rem; height: 1.625rem} }
</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:
"accessibility": {
"open_wishlist": "Open wishlist"
},
Note: do not forget to add this translation key to your other locale files.