How to Easily Import/Export Navigation Menus in 30 Minutes?

Do you want to export a navigation menu from one WordPress site and import it into another?

You might occasionally want to move your entire WordPress website to a different website. It is necessary to import/export your navigation menus to the new website if you choose to use them from the old website. This will help you save time and work. It is an easy process; however, it might be challenging for beginners.

The default WordPress import/export functionality allows you to transfer menus as part of the full site transfer, but it doesn’t let you import/export menus by themselves.

In this post, we’ll show you how to import & export navigation menus in WordPress. But before we begin, let us first understand WordPress’s import/export features.

1 Understanding the Import/Export Features

You’ll find import and export functionality built into every WordPress website. In your WordPress dashboard, you can locate these under Tools > Import and Tools > Export, as shown below.

import/export options in wordpress
how to easily import/export navigation menus in 30 minutes? 18

You can export all the content on the Export page or export only your posts, pages, Schemas, and media.

export options
how to easily import/export navigation menus in 30 minutes? 19

The Import page helps you to import posts or comments from other systems to your site.

import page
how to easily import/export navigation menus in 30 minutes? 20

2 How to Import and Export Navigation Menus in WordPress

2.1 Export WordPress Menus

Before exporting your navigation menu, you can have a look at your menu by navigating to Appearance > Menus from your WordPress dashboard.

menus in wordpress
how to easily import/export navigation menus in 30 minutes? 21

You need to install and activate the WPS Menu Exporter plugin from Plugins > Add New section of your WordPress dashboard.

install and activate the wps menu exporter plugin
how to easily import/export navigation menus in 30 minutes? 22

Once activated, navigate to Tools > Export page from your WordPress dashboard. With the WPS Menu Exporter plugin installed, you should see a field called Navigation Menu Items.

Any comments or posts on the menu will be included with your import/export functionality.

navigation menu items
how to easily import/export navigation menus in 30 minutes? 23

The next step is to select the Navigation Menu Items radio button and then click the Download Export File button.

This helps you to download the menu and any related files to your system. It will be saved as a file with the .xml extension. It will have the name site.wordpress.yyyy-mm-dd in it. The date is expressed as yyyy-mm-dd, and ‘site’ denotes the website.

export file
how to easily import/export navigation menus in 30 minutes? 24

2.2 Import the WordPress Menu

The .xml file you downloaded can be imported using the WordPress standard Import feature. It’s an easy process. You must upload the file containing your navigation menu to your new website.

Note: Make sure there are no existing pages, even in the trash, with the same name as the pages you’re importing from the menu. Otherwise, the import tool might not be able to import those pages correctly.

To begin with, log in to your WordPress dashboard on the new site where you want to import your menu. Then navigate to Tools > Import as shown below.

import options
how to easily import/export navigation menus in 30 minutes? 25

Scroll down to the WordPress heading and click the Install Now link as shown below.

install wordpress importer
how to easily import/export navigation menus in 30 minutes? 26

Once the WordPress importer has been installed, the Install Now link should be replaced with one that says Run Importer.

click on run importer
how to easily import/export navigation menus in 30 minutes? 27

Next, you’ll see the Import WordPress screen. Click on the Choose File button to select the .xml file you downloaded earlier. Then click on the Upload file and import button.

upload the file
how to easily import/export navigation menus in 30 minutes? 28

You then have to Assign Authors, as shown below. You can choose to assign posts to an existing user or create a new one. In most cases, it’ll make sense to set an existing user as the author rather than to create a new user.

assign authors
how to easily import/export navigation menus in 30 minutes? 29

Select the user name from the drop-down menu.

select the user
how to easily import/export navigation menus in 30 minutes? 30

If you wish to re-use the pages’ content, check the Download and import file attachments box. With this, the images will be included in the import. Lastly, click on the Submit button.

Here’s how the success message will appear on your screen.

success message
how to easily import/export navigation menus in 30 minutes? 31

Now that your import is successful, you can look at the imported menu. To do so, navigate to Appearance > Menus from your WordPress dashboard. Here, you can make verify that it is imported correctly.

imported menu
how to easily import/export navigation menus in 30 minutes? 32

Click the Pages tab in your WordPress dashboard to view the new pages that have been imported along with the menu.

new pages
how to easily import/export navigation menus in 30 minutes? 33

Make sure to take a look at the frontend of your site to see how the new menu looks!

menu added to the other site
how to easily import/export navigation menus in 30 minutes? 34

3 Conclusion

You might need to change the menu design settings to get the desired look on a new site with a different theme. Other than that, since custom coding is not required, importing/exporting WordPress menu items is rather straightforward.

We hope this post has successfully armed you with the knowledge you need to import/export navigation menus that work for you…

If you like this post let us know by Tweeting @rankmathseo.

Read the original blog here.