Small businesses are now migrating to Magento2 in addition to large-scale businesses. Magento 2 offers a wide variety of functionalities, high security, high scalability, and constant growth in development.
You are most likely using Magento 2 for your eCommerce store website.
Whether you’ve created a store from scratch using Magento2 development company or used a premade template to build your website, there is one thing that will always be the same: How do you create a CMS page, and add it to the top menu navigation?
Obviously, there is a quick solution or rather a turnaround for this where you can just create a CMS Block->Add content in there from the page->Save and then in Products->Categories->Design tab->Select that Static block. This will allow you to show content in categories but not the page content you desire on your Magento eCommerce store.
This guide will show you how to create a CMS page, add it to the top navigation menu of your Magento 2 website and provide step-by-step information.
Make a CMS page
Let’s begin by creating the CMS page that you wish to include in the navigation top menu. Go to Admin-> Content-> Pages
To create a new page, click on the Add New button
Please enter the details of your new webpage, such as page name “new page”, and note down URL Key “new-page”. Click on “Save Page” to add the page content.
Navigation Menu: Add CMS Page Link
The next step is to customize your theme’s XML files. This will allow you to add your code to certain sections of your template.
You can edit your theme’s layout XML files to do this. However, we recommend that you create a small custom code extension to ensure your theme files are not lost. This will allow you to upgrade your theme and continue support for it in the future.
Do you have a project in your mind?
You will now need to create the file that contains the URL key and the link name. From Magento 2 root, create a file called “Link.php”.
This is all we can think of. If you have any questions or need to customize your magento2 web store, please contact our Magento 2 development company.