You will need to add “Custom Links” to your menu to point to the homepage + the specific anchor on the page.
For example, your services
section may have the markup:
<section id="services">
<h2>Services</h2>
<p>Some text</p>
</section>
So your custom menu link would need to have a URL of /#services
. You need the /
slash at the start so that if someone clicks the menu from elsewhere in the site, it will first go to the homepage and then link to services, rather than trying to look for that ID on the current page.
Related Posts:
- Add a custom walker to a menu created in a widget
- How to register custom menu widget
- Which settings/options are saved on a theme-basis and how does this affect theme-switching?
- Override custom menu widget
- Placing widget to menu
- Make compatible custom menu widget for Twitter Bootstrap
- WordPress Custom Menu Widget Style
- Change HTML structure for custom menu in sidebar
- How to give custom classes to the WordPress Menu widget
- How to add #navbar to all page links?
- Prev / Next menu item
- How to add class to and childs of sidebar widget – WordPress
- Recent Posts widget missing current_menu_item class
- How to avoid the and which added when custon menu widget is used
- “Widgets” menu doesn’t appear
- Simple form to add custom links to menu?
- How to add social buttons like facebook and twitter in the footer of a theme?
- Catagorized hierarchy menu for PAGES!
- Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?
- Adding widget to sidebar which contains current page’s submenu
- Add Class to Custom Menu Widget ul
- How to add a toggle on the left side of my page?
- Any reason why widgets/menus get emptied when I updated custom theme code?
- Hiding Widget On Mobile Devices Removes Our Product Search Box On Mobiles
- Dynamically exclude menu items from wp_nav_menu
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- adding some custom html code to the wp_nav_menu function
- Renaming a WordPress Admin Menu
- How to Move the Author Metabox into the “Publish” metabox?
- How do you get the current-menu-item ID?
- How do I give class to the dropdown sub-menu in the wp_nav_menu?
- Add log in link to menu in Twenty Twelve
- rename navigation menu label in wordpress theme by code
- menu entries are lost
- Automatically Add New Tags to Sub-menu
- how to automatically generate hierarchical menus from hierarchy of pages?
- Add sidebars to navigation menu?
- Where to update the Static Pages Blacklist for Multisite Install?
- How to create a category menu?
- Adding a ‘mega menu’ to my site without a plugin
- Hide Menu items base on capability
- TwentyTwelve child theme mobile menu not working
- Remove li from wp_nav_menu
- Convert WP Menu to a Drop Down for Mobile browser
- I am facing a problem with the navigation menu of my website
- Prepend to start of WordPress nav loop
- two menus show different menu based on what menuitem is selected on menu1
- Appending a GET-Variable to wp_nav_menu
- Change search results order for Admin -> Appearance -> Menus -> Pages -> View all
- Menu custom link not working for external site
- How to override the theme home page?
- custom walker class
- Displaying different page links on different pages
- One item not showing when programmatically Generating Navigation Menu
- Changing status of Published posts which have less Content to “Draft”
- Main menu highlighting on subpage which is not in submenu but in hierarchy
- register_nav_menus, then create menus programatically
- Create menu without admin panel
- How can template identify what page it’s being used on?
- Custom Post Menu link reverting to Blog menu item
- Can’t display custom menu using name?
- Highlighting Active Page in Navigation when Viewing Child Pages
- how to add data to li for wp_nav_menu?
- How to change the link on the logo at the menu?
- Convert complex HTML menu to WordPress [closed]
- Nav menu classes ‘has-dropdown’ but no ‘active’
- Adding Pipes to Menu Output
- Using CSS ID’s and Classes with images in a WordPress Horizontal Menu
- How to list menu-item- ids in order for wp_nav_menu
- How to show pages in menu without link
- Child pages don’t become submenus (as in the twenty-ten theme)?
- Exclude all pages except a few?
- Secondary Menu Not Functioning as a Sticky Menu
- Add prefix to url, but products not showing in page SHOP
- Nav Menu: Theme Location not working
- Remove Link from WordPress Menu
- What is inside in $item in start_el function in Walker_Nav_Menu class
- How to use Bootstrap Navbar in wordpress Nav Menu
- wp_nav_menu seems to be printing the wrong menu
- How to build a menu that change style over a section
- Highlight inner post menu current item
- Menu dropdown disapears behind slider
- Generate Submenu based on Parent Page using If Statement
- Links in new menu don’t work
- how to change single post link
- Any simple way to show 10 previous pages by id to current page in links as a menu
- Vertical Menu items shifting to same line when window size increased [closed]
- Pass $item->description to start_lvl
- Menu on responsive twentytwelve theme not working, strange url error
- Query for menus in backend (BE)
- Next/previous a-like single navigation
- Add more levels to menu
- How to create a menu super voice in WP?
- WordPress Navigation
- Showing Custom Menus in the sidebar
- How to set up suhosin.ini for unlimited menus
- Customizing Responsive Themes Menu [closed]
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- Display sub menus as separate lists
- Add menu to CMS page