Shopify themes, liquid, logos, and UX
Hello everyone, I'm trying to make a mega menu in my store(Dawn theme) with the help of this video (video). But every time, I get an error.
Can someone please provide some code or guidance to create a mega menu like the one shown in the picture?
Solved! Go to the solution
This is an accepted solution.
If you're using the Dawn theme and getting errors while following the video tutorial, it might be due to recent updates in the theme or a small mistake in the code.
here's a basic structure for a mega menu in Dawn:
Wrap the submenu in a div like this:
{% if link.links.size > 0 %}
<div class="mega-menu">
<ul>
{% for child_link in link.links %}
<li>
<a href="{{ child_link.url }}">{{ child_link.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
Then, add some CSS (in base.css) to style it:
.mega-menu {
position: absolute;
left: 0;
top: 100%;
background: white;
display: none;
padding: 20px;
width: 100%;
}
li:hover .mega-menu {
display: block;
}
Dotsquares Ltd
Problem Solved? ✔ Accept and Like solution to help future merchants.
This is an accepted solution.
If you're using the Dawn theme and getting errors while following the video tutorial, it might be due to recent updates in the theme or a small mistake in the code.
here's a basic structure for a mega menu in Dawn:
Wrap the submenu in a div like this:
{% if link.links.size > 0 %}
<div class="mega-menu">
<ul>
{% for child_link in link.links %}
<li>
<a href="{{ child_link.url }}">{{ child_link.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
Then, add some CSS (in base.css) to style it:
.mega-menu {
position: absolute;
left: 0;
top: 100%;
background: white;
display: none;
padding: 20px;
width: 100%;
}
li:hover .mega-menu {
display: block;
}
Dotsquares Ltd
Problem Solved? ✔ Accept and Like solution to help future merchants.
Thank you so much for your help! I truly appreciate it, and I’m delighted to let you know that everything is working perfectly now.
Hi @AbhishekK111,
Can you describe in detail the steps of the error?
I will check it.
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025