> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/avante-themes/faq/navigation/on-mobile-tapping-a-parent-menu-item-navigates-away-instead-of-expanding-the-submenu.md).

# On mobile, tapping a parent menu item navigates away instead of expanding the submenu

By default, tapping menu text navigates and tapping the arrow expands. Use a CSS snippet to disable parent-link navigation on mobile in Avante.

This is the default theme behavior.

* Tap the **arrow** to expand the submenu.
* Tap the **text** to open the parent link.

There is no built-in setting to change this behavior.

<figure><img src="https://795663372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6DraMvJNYYlFJqlho1aV%2Fuploads%2FZuSFDXG08bdRuY1kxZHQ%2FScreenshot%202026-06-12%20at%2010.42.44.png?alt=media&amp;token=a026eb49-bebf-4a99-9622-20175676c358" alt=""><figcaption></figcaption></figure>

***

### Disable navigation on a specific parent item

If you want tapping the text to expand the submenu instead of opening the parent link, add this in **Theme Editor → Theme settings → Custom CSS**:

```css
.link-shop {
  pointer-events: none;
}
```

Replace `shop` with the menu item's own class. The arrow keeps working — it sits outside the link, so only the text stops responding to taps.

<figure><img src="https://795663372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6DraMvJNYYlFJqlho1aV%2Fuploads%2FYYmFWZkLalTRJqIkfws2%2FScreenshot%202026-06-12%20at%2010.48.56.png?alt=media&amp;token=b03cae2a-b565-45a3-983e-de5f09c31479" alt=""><figcaption></figcaption></figure>

### How to find the class

1. Open your store in the browser.
2. Right-click the menu item and select **Inspect**.
3. Find the `<a>` element and look at its class list — the first class starts with `link-`.

<figure><img src="https://795663372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6DraMvJNYYlFJqlho1aV%2Fuploads%2FhUfSFMynM6CG4Criz0OJ%2FScreenshot%202026-06-12%20at%2010.46.08.png?alt=media&amp;token=8c985542-d25e-4f6f-b036-2ebe3ebc2d32" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Menu titles with spaces don't get a single class.** The theme builds this class by lowercasing the menu item's title and nothing else — spaces are kept. A one-word title like "Shop" gives you a clean `link-shop`, but "Brands & Designers" is read by the browser as three separate classes: `link-brands`, `&` and `designers`. There is no `.link-brands-designers` to target.
{% endhint %}

### For menu items with more than one word

Target the link by its URL instead — this works for any title:

```css
.menu-drawer .menu__item-link[href="/collections/brands-designers"] {
  pointer-events: none;
}
```

Use the exact `href` value you see in the inspector, and keep the `.menu-drawer` part so the rule only applies inside the mobile menu drawer. Both drawer styles — Default and Mega menu drawer — share that wrapper, so the rule works whichever one your store uses.

{% hint style="info" icon="lightbulb" %}
This only affects the menu item you target. All other menu items keep their default behavior.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/avante-themes/faq/navigation/on-mobile-tapping-a-parent-menu-item-navigates-away-instead-of-expanding-the-submenu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
