Following up on the topic of adding a top-level nav item, we also often get asked “How do I add a dropdown menu to my website’s navigation?”.
Adding a dropdown menu is a really easy task:
Start by logging into the backend, click on the primary search button (top right).
In the search menu, type site-navigation and select the matching search result.
On the navigation snippet page, scroll through the snippet markup looking for where you want to add the dropdown menu. Next, paste the following code where you want the dropdown menu to be displayed.
Click Here for Dropdown Menu Code
<li class="-has-dropdown">
<button type="button" aria-expanded="false" aria-controls="nav_dropdown_id_0">
TOP LEVEL NAV TITLE
<svg width="8" height="8" viewBox="0 0 32 32" class="icon">
<title>Dropdown arrow</title>
<polygon points="16,25.9 0,9.9 3.7,6.1 16,18.4 28.3,6.1 32,9.9"></polygon>
</svg>
</button>
<ul class="dropdown dropdown__two-column" id="nav_dropdown_id_0" aria-hidden="true">
<li>
<a href="/link-url.php">PRIMARY LINK TITLE</a>
</li>
<li>
<a href="/link-url.php">DROPDOWN LINK TITLE</a>
</li>
<li>
<a href="/link-url.php">DROPDOWN LINK TITLE</a>
</li>
</ul>
</li>
Once pasted you will first change the Top-Level Nav Title.
Then you will edit the Primary Link, changing the link URL and title.
Next, you will edit the Dropdown Links, changing the link URLs and titles.
Select the save button.
Now you have a new dropdown menu in the site navigation.
Without changing these fields the dropdown menu should look like the following.
Wondering if you could share whether Ren can do a tiered drop down nav menu out of the box?
Example
Buyers (main nav heading) > Condominiums (What you have here) > List of pages for Condominiums (Tiered portion) where you could mirror the side nav for a page.
Sounds good! Do you have a retainer booked? We have a tonne of orders right now, so you’ll want to get in as soon as possible. Let me know if you need any help getting a project setup.
Hey Morgan,
Yes we support the dropdown menu to have up to 3 columns. We didn’t implement it beyond that because it would be hard to control when making it responsive. Hope that answers the question.
Thanks for the tutorials, Travis and Elianna. Just wondering if it’s possible to have a multi-column dropdown without including a primary link title? In other words, the dropdown would only include the columns.