Shopify themes, liquid, logos, and UX
I've created a Mega Menu using the Dawn template and subsequently added code in header.liquid to avoid having to click on my header to expand this menu. Then, I wanted to make it possible to click on "Products" to be led to the collections via an <a href>. However, the click listener for the menu still exists, causing it to close and open.
The question is: Where can I find this click listener and subsequently replace it with an href?
As an example, the "Products" tab should function similarly to what is found at https://www.esn.com/en.
Solved! Go to the solution
This is an accepted solution.
Hi @Fabi23
Dan here from Ryviu: Product Review & QA app.
You can do that by following this instruction
Go to your Online store > Themes > Edit code > open header-dropdown-menu.liquid and header-mega-menu.liquid files, find those lines of code (from line 19th-25th)
<span {%- if link.child_active %} class="header__active-menu-item" {% endif %} > {{- link.title | escape -}} </span> {% render
<a class="header__menu-item list-menu__item link link--text focus-inset" href="{{ link.url }}"> <span {%- if link.child_active %} class="header__active-menu-item" {% endif %} > {{- link.title | escape -}} </span> </a>
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Hi @Fabi23
Dan here from Ryviu: Product Review & QA app.
You can do that by following this instruction
Go to your Online store > Themes > Edit code > open header-dropdown-menu.liquid and header-mega-menu.liquid files, find those lines of code (from line 19th-25th)
<span {%- if link.child_active %} class="header__active-menu-item" {% endif %} > {{- link.title | escape -}} </span> {% render
<a class="header__menu-item list-menu__item link link--text focus-inset" href="{{ link.url }}"> <span {%- if link.child_active %} class="header__active-menu-item" {% endif %} > {{- link.title | escape -}} </span> </a>
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This works perfectly.
Thank you very much!
You are very welcome
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025