How to add red dot at header menu - Dawn theme Shopify
Before you start it
- Dawn theme version at this post is 6.0.2
- Duplicate your theme
Quick Look 👀
Getting started ✏️
header.liquid
Online store > themes > Actions > Edit code > Sections > header.liquid
replace code ( default code at line 437 and 482 )
1 | <a href="{{ link.url }}" class="header__menu-item header__menu-item list-menu__item link link--text focus-inset"{% if link.current %} aria-current="page"{% endif %}> |
with
1 | <a href="{{ link.url }}" class="header__menu-item header__menu-item list-menu__item link link--text focus-inset {% if link.title contains '__red-dot' %}header__menu-item--red-dot{% endif %}"{% if link.current %} aria-current="page"{% endif %}> |
CSS
1 | .header__menu-item--red-dot { |
How to use
Add __red-dot
after the link name you want to add red dot.