Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I want my submenu to be clickable on phone. This already works perfectly in the desktop version. But not yet on the phone.
I would like that when I click on the submenu name I get to the stored link and only when I click on the arrow on the edge, i go in the next submenu.
Maxi-Brillian (maxibrillian.com)
pw deropa
Solved! Go to the solution
This is an accepted solution.
Hi @MaxiMaxi,
Please go to Actions > Edit code > Sections > header.liquid file, find 'Details-menu-drawer-menu-item' and add code here:
Code:
<a href="{{ link.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">
{{ link.title | escape }}
</a>
Hope it helps!
This is an accepted solution.
Hi @MaxiMaxi,
Please find 'Details-menu-drawer-submenu' and change code here:
Code:
<a href="{{ childlink.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">
{{ childlink.title | escape }}
</a>
Hope it helps!
This is an accepted solution.
Hi @MaxiMaxi,
Please go to Actions > Edit code > Sections > header.liquid file, find 'Details-menu-drawer-menu-item' and add code here:
Code:
<a href="{{ link.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">
{{ link.title | escape }}
</a>
Hope it helps!
Thank you for your help.....
ok the first part is working...
means the menu is Name1 -> Name2 -> Name(End)
now i can click on the "Name1" and i go (like i want) directly to the linked collection(perfect), but when i use the arrow and i come to menu point "Name2" it doesnt work and i go only in the next submenu.
hope you understand
thank you allready
This is an accepted solution.
Hi @MaxiMaxi,
Please find 'Details-menu-drawer-submenu' and change code here:
Code:
<a href="{{ childlink.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">
{{ childlink.title | escape }}
</a>
Hope it helps!
Awesome, I had to adapt it slightly for Dawn Theme v8.0.
Around Line 159, I have the following:
{% comment %}{{ link.title | escape }}{% endcomment %}
<a href="{{ link.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">
{{ link.title | escape }}
</a>
With your original code I had no link title and there was no link. The right arrow still clicked through to the submenu!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024