MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Register Navigation Menus of our Custom Theme in WordPress? Part-7

How to Register Navigation Menus of our Custom Theme in WordPress?

What are the Navigation Menus?

Navigation-Menus are customizable menus in your theme. They allow users to add Pages, Posts, Categories, and URLs to the menu. To create a navigation menu you’ll need to register it, and then display the menu in the appropriate location in your theme.

  1. Create a functions.php file into the Customer Theme folder.
Windows File Explorer showing the customtheme folder with functions.php selected

Register menu

2. Use of register_nav_menus() to register the menu. Register navigation menu locations for a theme. The Primary menu and Footer menu are the names of the menus. The “init” is the action. About Action Hooks go to https://developer.wordpress.org/plugins/hooks/actions/ .

3. Go to Dashboard and Click Appearance->Menus.

WordPress Dashboard with the Appearance menu open and Menus highlighted

Menus section of Custom Theme has appeared now.

WordPress Menus screen with an empty Menu Name field and Create Menu button

4. For displaying the Primary menu and Footer menu, we have to create the Header menu for Custom Theme and click Create Menu.

WordPress Menus screen with Header Main Menu typed as the menu name

Now, we can see the Primary menu and Footer menu has created.

Header Main Menu settings showing Primary Menu and Footer Menu display locations

Thanks

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

How to Import DOCX into WordPress with Mammoth: Text, Images, Tables and Code

A practical, single-file publishing workflow for bloggers, technical writers and DevOps training teams. Figure 1. Original featured illustration (1200 × 630 pixels). Writing an excellent tutorial is…

Read More

WordPress Typography Patterns: Styled Lists, Notice Boxes, and Code Blocks with Reusable CSS

This guide modernizes a legacy WordPress typography post into practical, reusable patterns for custom list markers, callout boxes, and code styling. It focuses on maintainable CSS and editor-friendly markup you can reuse across posts and documentation pages.

Read More

Moving a WordPress Site to Webflow: What Happens to Your Hosting, DNS and Email

Most guides about Webflow answer one question: is it the right builder for you? This one starts after that decision. You have a WordPress site on Bluehost,…

Read More

How to Choose the Right Website Development and SEO Partner for Your Business

A professional website has evolved far beyond a digital business card or an online brochure. Today, it serves as the core foundation of a brand’s entire online…

Read More

Docker Compose: WordPress + MySQL Using Shared Environment Variables

Create a project folder: Create a .env file: Create docker-compose.yml: Start the containers: Open WordPress: Now students can see how environment variables are passed into both containers….

Read More

Top 10 Content Management Systems (CMS): Features, Pros, Cons & Comparison

Introduction A Content Management System (CMS) is software that helps individuals and organizations create, manage, organize, and publish digital content without needing deep technical or coding knowledge….

Read More