Sub menu items not linked properly - Mobile

Hi there, wondering where this issue is coming from.

Only on the mobile menu - the sub menu items under ‘Jeans’ and ‘Shop’ will only link to the parent links instead of their own collections. Everything is linked correctly but just won’t take you there. Any ideas?

(ignore space after lejean below - it wouldn’t let me post the real link for some reason)

lejean .com

2 Likes

if you don’t mind can you share the URL that you paste the sub menu

Hi @amaile

Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.

Best regards,
Devcoder :laptop:

sorry if im not understanding correctly - here’s the menu - all the items under ‘jean’ and ‘shop’ aren’t linking out properly to their own collections.

This post won’t allow me to put the url (I’m not sure why) but when I click ‘Barrel’ under ‘Jeans’ for example - it takes me to the link for ‘Jeans’.

Hi @amaile Welcome to Shopify Community.

To assist you further and understand better how to solve the problem for you, it will be very nice if you can share your store URL link and Password( In case it is password protected).

Thank you

Hello @amaile , Thanks for reaching out to Shopify community with your concern. I just checked your store and by inspecting the code it seems like all the sub menus have the same parent link. To check further we need to investigate the code base of the theme you are using or how you added the sub-menus for mobile as the menu on desktop is perfectly fine. I can look into it further with access to the backend of the store.

1 Like

Great! Thank you - how can I give this access?

Hi @amaile,

The issue isn’t from your menu settings. The mobile menu is coded in the theme, so all sub-items point to the parent collection. This needs a theme code update (Liquid fix).

I can fix it for you, just let me know.

@amaile I just checked the code and fixed it.

The sub-menu was using {{link.url}} instead of { childlink.url }}. So just replaced the link in the code which fixed the issue.

1 Like