How to Create a WordPress Menu | Display It on Desktop and Mobile with Cocoon

How to Create a WordPress Menu | Display It on Desktop and Mobile with Cocoon WordPress
Sponsored

What Is a WordPress Menu?

A WordPress “menu” is a feature that lets you organize links to pages, categories, and other content on your site and display them in any order you like.

For example, menus can be used for navigation like this at the top of your site.

WordPress header menu

Menus are not limited to pages.

  • Pages
  • Posts
  • Categories
  • Custom Links

You can combine these items to create a menu that suits your site.

Once you create a menu, you can also assign it to multiple display locations provided by your theme.

In this guide, we will create one menu and use it as a header menu on desktop and as a slide-in menu on mobile devices.

Create a New Menu

Create a menu from the WordPress dashboard.

Open “Appearance” “Menus”

If you have not created a menu yet, the screen for creating a new menu will be displayed.

If another menu already exists, click “Create a new menu.”

  1. Enter an easy-to-recognize name in “Menu Name.” For this example, we will use a name such as “Header Menu” so it is easy to identify in the dashboard.
  2. Click “Create Menu.”


WordPress Create a New Menu screen

The “Menu Name” is simply a name that helps you identify the menu in the WordPress dashboard. Normally, this name is not displayed on your site.

Add Items to the Menu

After creating the menu, add the items you want to display on your site.

On the left side of the screen, you will see options such as Pages, Posts, Custom Links, and Categories.

Add Pages

If you want to add pages such as “Home,” “Contact,” or “Profile” to the menu, add them from “Pages.”

  1. Open “Pages.”
  2. Select “View All” if necessary.
  3. Check the pages you want to add to the menu.
  4. Click “Add to Menu.”

WordPress Add menu items screen

The pages you add will appear under “Menu Structure” on the right.

You can add Categories and Custom Links in the same way.

Custom Links let you add links not only to pages on your own site but also to external websites when needed.

Rearrange the Menu Items

You can drag and drop menu items to arrange them in any order you like.

WordPress menu item rearrangement screen

Arrange the items in the order you want them to appear on your site.

When you are finished, click “Save Menu.”

You can also move menu items slightly to the right to create a hierarchical structure with parent and child menu items. We will explain hierarchical menus in detail in another article.

Choose Where to Display the Menu

Creating a menu alone does not automatically display it on your site.

You also need to specify where the menu should appear.

In Cocoon, you can choose the display location under “Menu Settings” at the bottom of the menu editing screen.

To display the menu at the top of the site on desktop, check “Header Menu.”

The available menu locations vary depending on the WordPress theme you are using. This article uses Cocoon.
Normally, You Can Leave Automatic Page Addition Turned Off
Under Menu Settings, there is also an option called “Automatically add new top-level pages to this menu.” If you enable it, newly created pages will automatically be added to the menu. If you prefer to manage the menu yourself, you can normally leave this option unchecked.

After completing the settings, click “Save Menu.”
The menu you created will now appear in the desktop header.

Display the Same Menu on Mobile Devices

Cocoon also lets you use the same menu you just created on mobile devices.

This time, we will display it as a “Mobile Slide-in Menu” that opens from the side of the screen.

Go back to “Menu Settings” on the menu editing screen.

Under “Display location,” check both:

  • Header Menu
  • Mobile Slide-in Menu

WordPress menu display location settings

Click “Save Menu.”

Now, you can use the same menu on both desktop and mobile devices.

When you open the menu button on a smartphone, the items you configured will appear in the slide-in menu.

You do not necessarily need to create separate menus for desktop and mobile. If you want to use the same items in both places, you can assign one menu to multiple display locations as shown here.

Start with One Simple Menu

Once you learn the basics of creating WordPress menus, you can use them in many different places on your site.

In this guide, we covered the following steps:

  • Create a new menu
  • Add pages, categories, custom links, and other items
  • Rearrange the menu items
  • Assign the menu to Cocoon’s Header Menu location
  • Assign the same menu to the Mobile Slide-in Menu location

When you are getting started, a simple menu with just a few frequently used pages is more than enough.

WordPress menus can also be used in areas such as the sidebar and footer, not only in the header.

You can expand their usefulness even further by creating hierarchical menus or using Cocoon’s Box Menu feature.

For more information about using Box Menus, see the article below.

How to Design and Custom-Style a Beautiful Cocoon Box Menu for Your Sidebar
How to Design and Custom-Style a Beautiful Cocoon Box Menu for Your Sidebar
Want to transform your plain sidebar? This guide shows you how to create a stylish Cocoon Box Menu with beautiful icons and custom CSS colors step-by-step.

Thank you for your clap! If you like, please leave a short message.

WordPress
Sponsored
About the Author
dorami

A huge tech and gadget enthusiast living in Osaka, Japan.
On this blog, I deliver honest, hands-on insights—from deep-dive WordPress theme customizations to thorough verifications of the latest trending wearables.
Enjoy user-first reviews and technical guides with zero sponsor bias!

doramiをフォローする

Comments

タイトルとURLをコピーしました