- You need to edit functions.php andding the following line
<?php register_nav_menu( 'primary', 'Primary Menu' ); ?>
-
Then go in admin section Apearence-Menus and create one menu
-
In the header replace
<?php wp_list_pages('title_li=&depth=1'); ?>
for example (the primary menu) with:
<?php wp_nav_menu( array( 'theme_location' => 'primary')); ?>
more details for nav_menu here
Related Posts:
- How to insert a logo in the header?
- Add custom classes to anchor in wp_nav_menu
- Page template in two level deep folder
- How can I get wp_head() as a string instead of echoing it?
- Add a #hash to the links in my custom menu
- Select menu on browser resize
- Returning Variables back into a template
- Displaying wp menus by name without using theme locations
- How to highlight the current page in the nav menu?
- Setting a Default ‘Theme Location’ When Creating a Menu
- Custom Nav Walker Displaying Values in Sub Menu
- Where is definied the theme location for the main menu in a WordPress template?
- create-guten-block in wordpress theme?
- My Admin bar covers my sticky navbar [closed]
- Override template file i subfolders
- Single Page theme [closed]
- How to make theme elements customizable in wordpress?
- Where am I doing wrong in my theme menu?
- Admin: sub menu doesnt display under apperance when activate my themes
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- Template for landing pages
- Thesis -style Navigation
- Why still output /wp-content/themes/twentynineteen?
- Create theme for mobile phones and tablets only?
- Why is my container argument not working for wp_nav_menu() [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- Theme: dropdown hover menu not showing up in IE/Edge
- Menu names not getting translated
- Primary Menu Showing All Pages With No Sub-Nav
- What’s the policy for building a theme that doesn’t support widgets/menus?
- Problem with multiple menus in theme
- How to make navigation a list without a plugin? [duplicate]
- What is the point of using the front-page.php template? [closed]
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- Dynamic nav menu with icons [closed]
- Why is wp_nav_menu() not removing the container around the nav ?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Theme not showing up
- html5-reset theme does not show the image [closed]
- Managing WordPress Theme
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- featured content: which area does this cover [closed]
- Second menu has the first menu ID
- Change image size depending on page
- Broken theme, template is missing
- WordPress page/blog incorporated into static website
- Theme Customizer not displaying saved values in wp_head (CSS)
- Random white space before doctype
- Adding a gallery to my first theme
- Are seven additional image sizes are too many?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- Starting point for custom Themes [closed]
- How can I hard code my sidebar?
- What exactly is “wordpress theming”? [closed]
- Simple child theme modification but links are broken
- Theme Development -> Specific Homepage
- wp_nav_menu and its fallback
- Making a WordPress theme based on twentyten
- registering a global template wordpress 6.0
- Post and page content not displaying in search results
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Copying the theme style files and images to duplicate the website but with a difference
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Theme development – Automatically menu creation
- Which cache is kicking
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Theme Action to hook for one time only function [duplicate]
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- searchform.php doesn’t work properly
- Issue when posting updates/changes to wordress
- How can i make multilevel menu in wordpress theme with bootstrap
- how do i develop a global nav and local nav to be wordpress dynamic?
- Customizer: get_preview_url() inside customize_save_after hook
- How to add custom meta box when you have a custom page template file
- Password protect a custom template
- Valid SQL query not returning results
- Theme development: How to add CSS classes to menu items?
- How to track a users last visited page?
- Templates dropdown not appearing using _s theme (underscores)
- get_header action not working
- Navbar- disable “onClick” drop-down
- Shortcode call not working in WP Template
- In a Gallery with limited image posts, how do I not limit images on single post?
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- LESS not working in WordPress [closed]
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- Load different single.php templates according to post layout selection
- How do I include a partial from a directory below a wordpress theme directory?
- Is there a way to switch to another theme?