Home Knowledge Base Menus & footer How do I set up the menu on mobile?

How do I set up the menu on mobile?

  • Leflite theme

Robert Oosterloo
Updated on · 5 min read

On a phone, there is no space for your main menu. Your website then shows a hamburger button, which opens a separate menu: the Mobile menu. In this article, you will learn how to fill that menu and what else you can set up.

In short

  • Up to 991 pixels wide, you will see the hamburger button. This opens the menu at the location Mobile menu.
  • Always link a menu to that location. Otherwise, the mobile menu will be empty.
  • You will not see the top bar, bottom bar, and a search field in the menu bar on mobile. Therefore, place important links in the mobile menu.
  • With Keep menu visible on mobile, the main menu itself remains visible.
  • Does the page jump when the menu collapses? Set under Hamburger menu to screen width to determine at what width the hamburger button appears directly.

How does the menu work on mobile?

On screens up to 991 pixels wide (phones and most tablets), a hamburger button appears on the right in the header. When you tap it, a white screen slides in from the left with the mobile menu and a close button. Items with a submenu get a button with an arrow. You can use that to open the submenu.

The mobile menu is a separate menu. Changes in your main menu do not automatically appear there. This way, you can also consciously display a shorter menu on mobile.

Het geopende mobiele menu op een telefoon: een wit scherm met de items Home, Diensten en Werk, rode knoppen met een pijltje voor de submenu's, een knop Contact en rechtsboven een sluitknop
The mobile menu slides in from the left. The red buttons open a submenu.

No website on leflite yet?

We will build it together with you. After that, you can adjust everything yourself, just like in this article.

  • Online within a week
  • Hosting, SSL, and backups included
  • Starting from €49,95 per month
Inspirare Coaching website on a laptop

Step 1: Create or open the mobile menu

Go to Menus. At the top of the menu, choose mobile, or click create a new menu, give it a Menu name like ‘Mobile menu’ and click Create menu. Add the pages as you do in the main menu: see adjust the main menu.

At the bottom under Menu settings, check the box for Mobile menu and click Save menu. If you want the same menu on mobile as on desktop, you can also link the main menu to this location. Then you only have one menu to maintain.

Onderaan Menu's het blok Menu instellingen met de menulocaties, waarvan het vinkje bij Mobiele menu rood omkaderd is
Check the box for Mobile menu and save the menu.

What do you not see on mobile?

A few parts of the header are hidden on screens up to 991 pixels:

  • the top bar above the menu;
  • the bottom bar (Under menu);
  • a shortcode in the menu bar, such as a search field (Menu bar shortcode).

If something important is there, such as your phone number, a search function, or a button, include it in the mobile menu as well.

Phone number, search, or a button in the mobile menu

  • Phone number: add a Custom link with the URL tel: followed by your number, for example tel:+31612345678, and type the number as link text.
  • Search: add the Search item. That gives a magnifying glass that links to the search page. See a search function on your website.
  • Button: open the item and choose Display option for Button. See a button or icon in the menu.

Show the main menu on mobile anyway

If you have a short main menu, for example, two links, you can keep it next to the logo on mobile. Open the main menu in Menus and turn Keep menu visible on mobile on. You will only see this option for menus at the location Primary menu (or Primary menu 1 and 2). Then check on your phone if everything fits next to the logo.

Een menu op de locatie Primaire menu met de schakelaar Menu blijven tonen op mobiel rood omkaderd
With this switch, a short main menu remains visible on mobile as well.

Does the page jump when you collapse the menu?

On a laptop or smaller screen, your main menu sometimes just doesn’t fit on one line. Your website only sees that once the page has loaded, and then collapses the menu to the hamburger button. At that moment, everything under the header shifts a bit.

You can prevent that with the setting Hamburger menu to screen width under General options → Header:

  1. Find the screen width at which your desktop menu just fits on one line: slowly make your browser window narrower and see when the menu collapses.
  2. Fill in that width, for example 1280, and save the options.

Below that width, your website will immediately show the hamburger button without jumping. If you leave the field empty (Automatic), it will work as usual. Do you have your website in multiple languages? Set it per language: a menu in another language is often longer or shorter.

Het veld Hamburgermenu tot schermbreedte in Algemene opties onder Header, met de uitleg ernaast
Fill in the width at which the hamburger menu appears directly; empty is automatic.

Tip: always test the mobile menu on your own phone. Why that is important, you can read in why a responsive website is important.

Having trouble?

  • The mobile menu is empty. There is no menu linked to the location Mobile menu. Link one and click Save menu.
  • A new page is in the main menu, but not on mobile. The mobile menu is a separate menu. Add the page there as well.
  • A submenu does not open when you tap the item. Tap the button with the arrow next to the item.
  • Your phone number from the top bar is gone on mobile. The top bar is hidden on mobile. Place the number as a link in the mobile menu.
  • The main menu does not fit next to the logo. Turn Keep menu visible on mobile off again.
  • Can’t figure it out? contact us.

Frequently asked questions

My mobile menu is empty. How can that be?

There is no menu linked to the location Mobile menu. Link one in Menus, under Menu settings.

Share this article

Robert Oosterloo

Robert Oosterloo is eigenaar en UX/UI-designer van Lef Creative in Kollum. Hij ontwerpt websites, webshops en software voor ondernemers in Noord-Nederland.

Read also

Want a website like this?

Here you can read how easy it is to maintain a leflite site yourself. Want one too? We will think along with you, no strings attached.

Prefer direct contact? Call Robert at 06 35 66 47 73 or send a .