Make parent menu clickable on mobile - Sense Theme

Hi,

I’m using Sense Theme and need help in making parent menus with dropdown clickable on mobile.

https://kbeautysource.com

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.

Hi @LitCommerce

Do you know how to do this for the prestige theme?

Thanks

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:

{{ childlink.title | escape }}

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 :fire: . 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.