Icons
Add the following files to your Snippets folder:
icon-heart.liquid
<svg
class="icon"
aria-hidden="true"
focusable="false"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none">
<path stroke="currentColor" fill="none" fill-rule="evenodd" d="M10 4.91868L8.42921 3.35461C6.61531 1.54846 3.67434 1.54846 1.86043 3.35461C0.0465212 5.16076 0.0465223 8.08913 1.86043 9.89528L10 18L18.1396 9.89528C19.9535 8.08913 19.9535 5.16076 18.1396 3.35461C16.3256 1.54846 13.3847 1.54846 11.5708 3.35461L10 4.91868Z"/>
</svg>
icon-star.liquid
<svg
class="icon"
aria-hidden="true"
focusable="false"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none">
<path stroke="currentColor" fill="none" fill-rule="evenodd" d="M7.75 7.35L1 7.8L5.95 11.85L4.15 18.15L10 14.55L15.4 18.15L14.05 11.85L19 7.8L12.25 7.35L10 1.5L7.75 7.35Z"/>
</svg>
header.liquid
Copy the code below on top of <a href="{{ routes.cart_url }}" class="relative" {% if settings.cart_type != 'page' and request.page_type != 'cart' %}aria-controls="cart-drawer"{% endif %}> tag.
<ooo-wl-access-button>
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" class="header__icon header__icon--account link focus-inset{% if section.settings.menu != blank %} small-hide{% endif %}" id="wishlist-icon-bubble">
{%- render 'icon-[ICON]' -%}
<span class="visually-hidden">{{ 'templates.wishlist.wishlist' | t }}</span>
</a>
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" class="header__icon link focus-inset" id="wishlist-icon-bubble">
{%- render 'icon-[ICON]' -%}
<span class="visually-hidden">{{ 'templates.wishlist.wishlist' | t }}</span>
</a>
</ooo-wl-access-button>
Replace [WISHLIST PAGE HANDLE] with your wishlist’s page handle and [ICON] with “heart” or “star” to select a heart or a star icon.
en.default.json
You will need to add the text description of the icon. To do that, add this line in the general -> templates object:
"wishlist": {
"wishlist": "Wishlist"
},
Note: do not forget to add this translation key to your other locale files.