Hi,
I’m using Sense Theme and need help in making parent menus with dropdown clickable on mobile.
The parent menus on desktop are clickable but not on mobile. Your help is much appreciated! Thank you.
Users are seeking to make parent menu items with dropdowns clickable on mobile devices in Shopify’s Sense theme (and later Dawn and Prestige themes).
Initial Solution (Sense Theme):
header.liquid file by finding 'Details-menu-drawer-menu-item-'{{ link.title | escape }} with an anchor tag: <a href="{{ link.url }}">{{ link.title | escape }}</a>Updated Solutions (Dawn Theme):
header-drawer.liquid in snippets folder{{ childlink.title | escape }} with: <a href="{{ childlink.url }}" style="color: rgb(var(--color-foreground));text-decoration: none;">{{ childlink.title | escape }}</a><details id="Details-menu-drawer-{{ link.handle }}-{{ childlink.handle }}"> and modify code 4 lines belowCurrent Status:
Hi,
I’m using Sense Theme and need help in making parent menus with dropdown clickable on mobile.
The parent menus on desktop are clickable but not on mobile. Your help is much appreciated! Thank you.
Hi @kbee ,
Please go to header.liquid file, find ‘Details-menu-drawer-menu-item-’ and change code here:
Code:
{{ link.title | escape }}
Hope it helps!
Hi. Thank you, it worked! I just wanna figure out how to align the menus properly so they don’t look like this on mobile.
Hi @kbee ,
Please change code:
{{ link.title | escape }}
=>
{{ link.title | escape }}
Hope it helps!
Hi @LitCommerce ,
It worked. Thanks a lot for your help.
Hi @kbee ,
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
I can’t find this code now
Hi there,
I have the same issue now but I cannot find ‘Details-menu-drawer-menu-item-’. Its 2024 now so I guess there have been some updates to the file and now is a bit different.
Could you please help again with the issue?
Thanks!
Have you found solution about Prestige?
Please reply.
Thank you @LitCommerce ! This worked for me! The key was to put it in the header-drawer.liquid file for Dawn 14.0.
Did you find a solution to this? I also don’t seem to have that in my code.
if you want your subcategories clickable you can follow these steps:
Edit code —-> go to snippets—-> header-drawer.liquid
search for:
id=“HeaderDrawer-{{ link.handle }}-{{ childlink.handle }}”
under this section you’ll find this line:
{{ childlink.title | escape }}
replace it with this line:
This worked for me! Thanks so much!
In Dawn 15.1.0 open header-drawer.liquid and replace these lines with the code below.
Line 32: {{ link.title | escape }}
{{ link.title | escape }}
Line 44: {{ link.title | escape }}
{{ link.title | escape }}
Line 66: {{ link.title | escape }}
{{ childlink.title | escape }}
This was absolute
. My Lines were in different spots but after playing around was able to make submenu clickable by replacing
{{ link.title | escape }}
with
{{ childlink.title | escape }}
the key for me was to look find
I suggest you command, f it
4 lines down you’ll find your {{ link.title | escape }} that needs to be replaced.
Hi! I’m Currently fixing my drawer menu on mobile Dawn theme, I have applied these codes but it is still not working.