DAWN theme navigation

Solved
smj_90
Excursionist
21 1 3

I have build a store using dawn theme.

But the problem is when I click the main navigation, the dropdown appears, which Is okay but it's link is disabled.

The link on that anchor doesn't work. I'm talking about the main navigation. 1st child and grandchild links are working fine, but if there is a dropdown level, the parent link doesn't work.

Any way to fix this???

Replies 20 (20)
dmwwebartisan
Shopify Partner
9731 2226 3054

This is an accepted solution.

@smj_90 

Please find following code your sections/header.liquid file 

 

<summary class="header__menu-item list-menu__item link">
     <span {%- if link.child_active %} class="header__active-menu-item"{% endif %}>{{ link.title | escape }}</span>
              {% render 'icon-caret' %}
</summary>

 

Replace to 

<summary class="header__menu-item list-menu__item link">
   <span {%- if link.child_active %} class="header__active-menu-item"{% endif %}><a href="{{ link.url }}" 
   class="header__menu-item header__menu-item ">{{ link.title | escape }}</a></span>
  {% render 'icon-caret' %}
</summary>

Thanks!

 

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →

View solution in original post

smj_90
Excursionist
21 1 3

I did this too, but this will not work. as on click drop down also opens and it will have link too, so for dropdown, if i click, then it will navigate to the url but the dropdown will not work.

dmwwebartisan
Shopify Partner
9731 2226 3054

@smj_90 

ok i will check your problem but click on arrow drop down open

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
dmwwebartisan
Shopify Partner
9731 2226 3054

@smj_90 

if add css or code any file please remove it

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
smj_90
Excursionist
21 1 3

hey i have done it. check the website now, link is also added and on hover the menu opens instead of clicking, and the url is also working now!

check, i will share the code too. i have removed the <summary> element, and converted it into <div>

dmwwebartisan
Shopify Partner
9731 2226 3054

@smj_90 

ok, Great!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
TanjaSalty
New Member
1 0 0

Dear @DM Thanks for the solution! It works on desktop now, yet on mobile, if clicking on the parent collection, still the sub-collections appear and it is not possible to click on the parent collection and see all products at once/ main collection as on desktop. Any solutions? THANK YOU! 

qaiser1
New Member
1 0 0

hi, 

 

this is working but the color and font size changed. how to solve that

 

smj_90
Excursionist
21 1 3

@TanjaSalty please share the link so that i can further investigate.

Also, please make sure you're doing this work in DAWN theme at line#305

because same code is available at line#95 but it's for mobile menu.

May be that's the reason your code is not working.

smj_90
Excursionist
21 1 3

@qaiser1 send me the link, i'll check and let you know.