How to Link Parent of Dropdown to Open Submenu on Mobile

Hello!

We’ve noticed that on mobile dropdown items will only dropdown if you click the arrow, not if you click the actual text/parent. But on desktop it works fine.

Is there a way to adjust so that both the parent/anchor opens the dropdown? I’ve tried the js from this post: https://theme.co/apex/forums/topic/navbar-menu-dropdown-by-clicking-text-instead-of-button/

But it doesn’t appear to be working - I’ve cleared my cache.

Thanks for your help.

Hi there,

Please try adding this in the Global CSS:

.mobile .x-sub-toggle {
    width: 100%;
    text-align: right;
}

You can find more info on how to check for CSS selectors here.
Then information about writing your custom CSS here.

Hope this helps.

Perfect that did the trick - thanks Jade!

You’re most welcome, Aragona. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.