Simply add the following into your functions.php
:
add_filters( 'nav_menu_item_id', 'wpse64308_nav_menu_item_id',10,3);
function wpse64308_nav_menu_item_id( $id, $item, $args){
return 'menu-item-'.$item->title;
}
Related Posts:
- Extend walker – navigation, adding data attribute to a tag
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How to make theme elements customizable in wordpress?
- Custom Navigation build using wp_nav_menu and walker
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Remove/Hide a Widget on a Custom Template
- WordPress menu walker – Get parent item text inside end_lvl function
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- How to add posts to custom menus?
- wp_nav_menu(), how to change class?
- Display Menu Name using wp_nav_menu
- Using classes instead of global functions in functions.php
- Add custom classes to anchor in wp_nav_menu
- Change admin bar to default:off
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- Template for individual post designs
- How to use logout function on custom menu link?
- When to use esc_url, esc_html, esc_attr, and friends?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- Problem with registering menus – What to do when other solutions aren’t working?
- Add a #hash to the links in my custom menu
- How can i change menu link when page content empty?
- Front End Post Submit Form
- Feature Survey – What would you want in a resume theme?
- Select menu on browser resize
- Change loop order via form or link (jquery, not URL)
- How to add (css) classes to only one wp_nav_menu()?
- Displaying wp menus by name without using theme locations
- How should I store global information such as a phone number so that it is editable through the CMS?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Upgrading a custom theme through the Dashboard
- WordPress nav_menu_css_class theme filter is not being called
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Version control for both Vagrant config and themes being developed [closed]
- 2 differen’t menus and it’s using same items in both
- Is there an action for save_menu and/or update_menu?
- Best way to start becoming a wordpress developer
- Where should I update_options in a theme?
- WP 3.1 upgrade breaks AutoFocus+ theme
- WordPress navbar with logo in middle [closed]
- WordPress is adding margins and padding to my custom menu?
- Displaying recent post excerpts on static front page
- wp_post->post_parent object returning 0
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- multisite: global menu containing network site links?
- How to create left and right menu with logo center in a custom theme?
- JavaScript stops working on selectively refreshed sections one inside the other
- Show woocommerce categories on my theme menu styling
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Is it possible to visually group items on the theme customizer?
- Custom Blocks as part of a theme
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Admin: sub menu doesnt display under apperance when activate my themes
- How to have content scroll over background
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Create custom xml file for demo content for custom theme?
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to add menù section to my WordPress template?
- wp_nav_menu and its fallback
- How to clean up the theme for production?
- Theme development – Automatically menu creation
- add shortcode support in customizer
- Theme development: How to add CSS classes to menu items?
- Navbar- disable “onClick” drop-down
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- Update Specific Key Value in Complex `wp_options` object
- How to conditionally add a wp_filter
- Can’t change theme name
- Parent/Child pages
- finding menu hierachy > wp_get_nav_menu_items
- How to substitute old wordpress menu by wp 3 menu the right way?
- How to use multiple check-box values to work in a function and insert values in database
- Archives and Categories in Custom Menu
- Best way to give user the option to make a menu, mega menu?
- Theme: dropdown hover menu not showing up in IE/Edge
- Show all menu levels except top level. How to exclude top level of a menu?
- Need help with adding custom wordpress menu and sub-menu
- How to achieve this navigation style in wordpress navigation
- How to dowload and edit content of a website
- Any way to permanently translate themes?
- Fallback dosen’t work when not using ‘menu’ attribute
- Best strategy for providing theme options using customizer
- Customizer API way function is_customize_preview() works only in main page?
- After theme change the menus have to be manually linked to the corresponding theme location
- Horizontal Navigation
- Support Multiple featured images
- What’s the policy for building a theme that doesn’t support widgets/menus?
- How Does One Create a Global Variable Repository
- What hook to use for loading a custom class extension during Theme initialization?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- How can I change the title of the Home link in the navigation bar?
- Not Found when using activity stream as front page with BuddyPress
- How to highlight current menu bar base on the URL?
- Global Navigation menu in diiferrent wordpress setups
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- How to set up a development/staging site to make major changes to the theme then update on the live site?