Note: This article refers to the Premier Legacy Templates. If you are using the Kajabi Pages Templates, please refer to the updated guide here.
Note: Adding a Dropdown Menu with Premier requires access to the Code Editor available with the Pro Plan. Learn more about our different plans at kajabi.com/pricing.
Dropdown menu
Adding a Dropdown Menu to your Page Header is a great way to provide additional links using the beautiful, sleek design of a dropdown:Step 1. Add code
First, open the Code Editor for the Page you wish to customize.- Click to open the Sections folder
- Then, click the header.liquid file
- Locate
{% if h-ShowMenu %}near line 24 - Copy and paste
{% include "dropdown" %}onto the line below{% if h-ShowMenu %} - Click Save to keep your changes:
Step 2. Create dropdown file
- Next, open the Snippets folder
- Then, click + Add a new Snippet
- Enter dropdown into the ‘Name’ field and click Create File:
Step 3. Edit dropdown menu
In your new dropdown.liquid file, copy and paste the code below:- Replace ENTER NAME ON NAV BAR with the link name you wish to display to your site users
- Customize the sub-links and text in your Dropdown Menu by overwriting https://enterlinkhere.com/, OPTION 1, OPTION 2, OPTION 3 with your own URLs and text
- Click Save to keep and apply your changes
- Then, Preview your Page:
Change the dropdown spacing (optional)
Looking to change the vertical spacing between your dropdown navigation links? This step requires additional coding in the Code Editor.- In your Code Editor, open the Assets folder
- Select the override.scss.liquid file
- Copy and paste the code below:
- Change the margin value (1px) in the code to adjust the spacing to your preference
- Click Save to keep and apply your changes
- Then, Preview your Page: