Liquid, JavaScript, themes, sales channels
Hi there! I am on the Studio theme, and wanted my Parent menu to be clickable on the header. Right now, when I add submenus, the parent menu link does not work, and only functions as a drop down when clicked on. How can I also enable parent menu to be clickable like seen in other themes?
Hey @RyanCheong995,
Try to add the following code to your header.liquid file.
<ul class="main-menu">
{% for link in linklists.main-menu.links %}
<li class="menu-item {% if link.active %}active{% endif %}">
<a href="{{ link.url }}" class="menu-link">{{ link.title }}</a>
{% if link.links %}
<ul class="sub-menu">
{% for child_link in link.links %}
<li class="menu-item">
<a href="{{ child_link.url }}" class="menu-link">{{ child_link.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
Hey @StudioEnchant , thanks for that, I have tried it but did not seem to work.
Perhaps you'd like to take a look? My collab ID is 9814
Okay, but what's the store URL?
Hey, please provide the collaborator request code
Hello again @RyanCheong995,
we have sent the collaborator access request. Kindly accept it so we can make the changes to your store.
User | RANK |
---|---|
37 | |
24 | |
13 | |
13 | |
9 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023