header.liquid
This code adds the icon in the desktop header. Search for class="site-header__cart-toggle , then copy the code above the <li> tag that comes just before it:
<li>
<ooo-wl-access-button class="ooo-wishlist-header-button">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" class="standalone-icon--wrapper" aria-label="{{ 'layout.header.open_wishlist' | t }}" style="position: relative; display: flex;">
{% render 'theme-icon', icon: 'heart' %}
<ooo-wl-wishlist-count class="cart-item-count-bubble" hidden aria-hidden="true" style="transform: {% if section.settings.cart-style == 'shopping-bag' %}translate(45%, -25%){% else %}translate(50%, -50%){% endif %};"></ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
</li>
This code adds the icon in the mobile header. In the same file, copy the code above the element <a href="{{ routes.cart_url }}" aria-label="{{ 'layout.cart.title' | t }}"
<ooo-wl-access-button class="ooo-wishlist-header-button">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" class="standalone-icon--wrapper" aria-label="{{ 'layout.header.open_wishlist' | t }}" style="position: relative; display: inline-flex;">
{% render 'theme-icon', icon: 'heart', iconClasses: 'fa-2x' %}
<ooo-wl-wishlist-count class="cart-item-count-bubble" hidden aria-hidden="true" style="transform: {% if section.settings.cart-style == 'shopping-bag' %}translate(45%, -25%){% else %}translate(50%, -50%){% endif %};"></ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
.mobile-nav-bar-wrapper .right-side .standalone-icon--wrapper { min-width: 0; padding-left: 6px !important; padding-right: 6px !important; }
.mobile-nav-bar-wrapper .right-side .site-nav--mobile > * { flex-shrink: 0; }
</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 layout -> header object:
"open_wishlist": "Open wishlist",
Note: do not forget to add this translation key to your other locale files.