Join Morten Rand-Hendriksen for an in-depth discussion in this video Creating menu items for page scrolling, part of WordPress: Building a One-Page Style Site.
…Now that we've enabled a custom menu to display on the front page,…we need to build the actual menu.…And what I want to do here is add in a menu item for each of my sections so,…book an appointment, testimonials, services, meet Dr. Britton, and contact.…And then, I want those menu items to point to the IDs that we…set up inside the page template so that we automatically jump to each section.…To do this, I'm going to go into my Admin panel, and go to Menus, and…I can do that either by selecting Menus off the WordPress toolbar, or…by going to the back end and Appearance > Menus.…
Here you see our Main Menu,…and you see that it's currently assigned to the Primary Menu Theme Location.…So what I'm going to do is create a new menu.…Give it the name Front Page Menu, because you'll remember,…that's the name we're looking for in the function.…And then I'm going to populate this menu with custom links to each of the sections.…So I'll go to the Links option, and create those links.…But first I'll point to Call to Action.…
- Creating a foundation for the front page with a child theme, styles, and dummy content
- Using custom queries to display content from different pages
- Adding testimonials
- Adding a custom menu
- Creating a scrolling effect