Dropdown menu clickable - Trade

Solved

Dropdown menu clickable - Trade

lauriannehuggin
Tourist
3 0 1

Hello,

I'm trying to make a dropdown menu name clickable, but only the sublinks can be clickable and bring you to a new page. I found answers here but they only seem to work with the Dawn theme, I have the Trade theme.

I'm trying to make the Gifting link cliquable, I set the link in the menu already.

Screenshot 2025-05-08 at 4.39.20 PM.png

 

Here is the link to my website:

https://52263b-b3.myshopify.com/

 

Thank you!

Accepted Solution (1)
Shadab_dev
Shopify Partner
1411 72 153

This is an accepted solution.

I see where the problem is. Check this out.

Shadab_dev_0-1746926972986.png

If you see the header section from the customizer you fill find this setting. Now your menu type is set to mega menu for which it does not take effect. If you change it to dropdown you will see it working. But if you wanna continue using mega menu just follow the same steps the guy showed on header-mega-menu.liquid file.

Hope this helps 
Best
Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

View solution in original post

Replies 7 (7)

Emmish
Tourist
5 0 0

Hey there! I ran into that same quirk with Trade’s dropdowns—by default it treats any parent menu item purely as a toggle, not a link. Here’s a quick way to bring your “Gifting” link to life:

First, head into your theme’s Customize view and click on your header/navigation section. See if there’s a setting called “Enable parent links” or “Show link on parent items.” Toggling that on should make “Gifting” clickable alongside its dropdown behavior.

If you don’t spot that option, you can tweak the theme’s header script—basically remove the bit that blocks parent-item clicks so your browser follows the URL instead of just opening the submenu. It’s a two-second change in the theme’s JS, and I’d be happy to walk you through editing it safely.

Give the Customize toggle a try first, and let me know if you need the code pointers next. You’ll have “Gifting” driving traffic in no time!

If this fixed your issue, a Like and marking it as a Solution would mean a lot!
Shopify Developer | Helping eCommerce Stores Grow — Emmish
Need help with your store, want to increase sales, or need support with marketing? Let me help.
 Contact:

Shadab_dev
Shopify Partner
1411 72 153

What ever quirks you tried on the dawn should most probably work in the trade theme as well since they are both Shopify free themes and the code base is pretty much the same. 

 

What code did you try?

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
lauriannehuggin
Tourist
3 0 1

I used this website to help: https://websensepro.com/blog/parent-menu-item-clickable-shopify-dawn-theme

I tried it 2 times it didn't work so I brought it back to the original coding to find an answer.

 

Screenshot 2025-05-09 at 2.49.11 PM.pngScreenshot 2025-05-09 at 2.49.32 PM.png

marcuswebexp
Shopify Partner
19 2 2

Hi @lauriannehuggin ,

 

Please try this solution in the header-mega-menu.liquid file of your theme:

{% comment %}
  Renders a megamenu for the header.

  Usage:
  {% render 'header-mega-menu' %}
{% endcomment %}

<nav class="header__inline-menu">
  <ul class="list-menu list-menu--inline" role="list">
    {%- for link in section.settings.menu.links -%}
      <li>
        {%- if link.links != blank -%}
          <header-menu>
            <details id="Details-HeaderMenu-{{ forloop.index }}" class="mega-menu">
              <summary
                id="HeaderMenu-{{ link.handle }}"
                class="header__menu-item list-menu__item link focus-inset"
              >
                <a href="{{ link.url }}" class="header__menu-item list-menu__item link link--text focus-inset" style="padding: 0 1.2rem;">
                <span
                  {%- if link.child_active %}
                    class="header__active-menu-item"
                  {% endif %}
                >
                  {{- link.title | escape -}}
                </span>
                </a>
                
                {{- 'icon-caret.svg' | inline_asset_content -}}
              </summary>
              <div
                id="MegaMenu-Content-{{ forloop.index }}"
                class="mega-menu__content color-{{ section.settings.menu_color_scheme }} gradient motion-reduce global-settings-popup"
                tabindex="-1"
              >
                <ul
                  class="mega-menu__list page-width{% if link.levels == 1 %} mega-menu__list--condensed{% endif %}"
                  role="list"
                >
                  {%- for childlink in link.links -%}
                    <li>
                      <a
                        id="HeaderMenu-{{ link.handle }}-{{ childlink.handle }}"
                        href="{{ childlink.url }}"
                        class="mega-menu__link mega-menu__link--level-2 link{% if childlink.current %} mega-menu__link--active{% endif %}"
                        {% if childlink.current %}
                          aria-current="page"
                        {% endif %}
                      >
                        {{ childlink.title | escape }}
                      </a>
                      {%- if childlink.links != blank -%}
                        <ul class="list-unstyled" role="list">
                          {%- for grandchildlink in childlink.links -%}
                            <li>
                              <a
                                id="HeaderMenu-{{ link.handle }}-{{ childlink.handle }}-{{ grandchildlink.handle }}"
                                href="{{ grandchildlink.url }}"
                                class="mega-menu__link link{% if grandchildlink.current %} mega-menu__link--active{% endif %}"
                                {% if grandchildlink.current %}
                                  aria-current="page"
                                {% endif %}
                              >
                                {{ grandchildlink.title | escape }}
                              </a>
                            </li>
                          {%- endfor -%}
                        </ul>
                      {%- endif -%}
                    </li>
                  {%- endfor -%}
                </ul>
              </div>
            </details>
          </header-menu>
        {%- else -%}
          <a
            id="HeaderMenu-{{ link.handle }}"
            href="{{ link.url }}"
            class="header__menu-item list-menu__item link link--text focus-inset"
            {% if link.current %}
              aria-current="page"
            {% endif %}
          >
            <span
              {%- if link.current %}
                class="header__active-menu-item"
              {% endif %}
            >
              {{- link.title | escape -}}
            </span>
          </a>
        {%- endif -%}
      </li>
    {%- endfor -%}
  </ul>
</nav>

 

 

You can view it here:

https://mwe-test-store-2.myshopify.com/

Password: Password

 

This isn't a fully-built solution, but will definitely get you close. If you want a more tailored solution, feel free to email or call me using the links in my signature.

 

If this was useful, a Like or marking it as a Solution is appreciated.

Myles Marcus | Web & Automation Specialist @ Marcus Web Experts LLC
Email: myles@marcuswebexperts.com
Phone: 858-208-3379
Your satisfaction is our top priority. If you don’t feel like you’re getting value, you don’t pay. It’s that simple.
Shadab_dev
Shopify Partner
1411 72 153

This is an accepted solution.

I see where the problem is. Check this out.

Shadab_dev_0-1746926972986.png

If you see the header section from the customizer you fill find this setting. Now your menu type is set to mega menu for which it does not take effect. If you change it to dropdown you will see it working. But if you wanna continue using mega menu just follow the same steps the guy showed on header-mega-menu.liquid file.

Hope this helps 
Best
Shadab

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
lauriannehuggin
Tourist
3 0 1

Yes it worked, thank you!

Shadab_dev
Shopify Partner
1411 72 153

Sounds great 👍 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.