If all you want is to go to a specific section of the home page, then the easiest way is to use the relative URL mark /
and then use the anchor #xxx
.
So the custom link for the menu will be: /#xxx
.
Note the difference between
#xxx
and/#xxx
as custom link.
The best thing about this approach is that you’ll not have to bother changing the link after you go live, and additionally, this needs no programming.
Related Posts:
- How can I get the page url slug when ‘post_name’ returns an id?
- Remove wrapping div and ul from output of wp_nav_menu
- How to Change 404 page title
- Add custom html to last sub-menu item
- wp_nav_menu() custom container and container_id
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- global menus made from master site’s custom menus wpmu network
- How to build custom WP admin with custom URLs
- wordpress custom walker for thumbnails with custom menu
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- Change default status and replace the icon for an hamburger menu
- simple expandable vertical menu, java script problem
- Create a Custom menu item fetched by Product Categories and Sub Categories
- wp_nav_menu google analytics event tracking
- How to change URL Custom Page?
- Only append custom classes to nav menu items
- Passing page url into a custom field via the Press-This bookmarklet
- Add filename to attachment page url
- How to extend nav-menu-item-control data in Appearance > Customize?
- Hide Login information in Account settings in Buddy Boss
- add_rewrite_rule won’t work
- How can I get the intended URL in a 404?
- Creating Search Engine Friendly URL’s with Word Press
- Adding all sub-pages to the menu manager
- add JS to multiple plugin admin pages
- Putting tag outside tag on generated Menu
- Programmatically (PHP) get the nr. of items in the primary navigation menu
- How to create left and right menu with logo center in a custom theme?
- Add clickable arrows to parent menu items with children elements e.g. with
- How Do I Remove The Right Hand Block On The Main Header?
- How to change the category url jusy show /category/%category_id% in wordpress?
- Adding posts to custom menu [closed]
- How to wrap the list with custom class using wp_nav_menu?
- Alphabetical Custom Menu
- change url for static files in /wp-admin with a cdn url
- Sub menu indicator that links to sub menu
- Navigation label for page in custom theme
- Redirect to another page using contact form 7? [closed]
- WPML Plugin Not displaying multilingual Menus
- how to display a specific wordpress menu?
- Create a url structure for my blogs based on categories and sub-cats
- Looking replicate static HTML Menu into WordPress Dynamic Menu [closed]
- Custom font size nav bar
- Sticky menu for WP custom menubars
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- Insert menu with a custom walker into page / post body using shortcode?
- Implement a Walker with custom object rather than WordPress database object
- How can I tag a menu item as visited for each unique user?
- How do I create a root link in wordpress to a PDF file?
- Position a hard-coded menu item
- How can i create menu like in the example?
- WordPress custom dropdown listings
- How to request container_class from wp_nav_menu
- Menu not appearing in custom theme
- Many Rewrite Parameters/Rules
- How can i display custom menu in sidebar?
- How to have multiple WordPress Menus
- How to add active state to the navigation links?
- Missing current_page_item in custom menu
- title tag function
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- Customize Widget Navigation
- Custom menu not showing even though it shows as being registered?
- query variables for custom taxonomies
- Custom CSS Nav Menu Style Not Being Applied
- Current menu item highlights wrong
- Add producthunt badge to wordpress menu
- Woocommerce custom “My Account” Tab – Add Save button
- New to WP: links on static homepage are not working
- I want to change url structure of my created archieve pages
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- How to add a template – so that i can choose a different menu for some pages
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- clickable toggle menu, help
- How to create custom post type selection to nav menu
- Replace an URL with an new URL which has a “?” in it
- Help needed creating a custom Hamburger menu in header
- Menu selection for header
- How to create a custom menu for specific user
- How to customize WordPress vertical menu?
- Creating a dynamic URL for an external link inside content
- remove or hide Link Relationship (XFN) form Menus tab
- My connecting URL form in html to PHP does not work
- User WordPress menu in custom page
- Adding images to anchors in the list created and fetched with wp_nav_menu
- how to hard link to the posts page?
- Page Permalinks: Custom URLs
- How do I display entries in the top menu based on conditions selected in the sidebar menu?
- Buddypress: New Tab and Page (Members Profile) [closed]
- How to work around the bug which prevents custom menus from being deleted?
- Class .current-menu-item in custom menu Walker
- Call a duplicate registration form with other url
- menu customization
- Pass query param to custom page
- How to move menu next to left of the search box?
- Custom CSS File wont work on second Page
- removing extra mobile menu from the header
- How do I fix the url when clicking on portfolio item?
- Custom Menu (only showing direct cildren) ACF not showing