The title is an accessibility attribute that helps users with screen readers. It is part of the recommended WC3 standard for navigation items. Just think about that before you decide to eliminate it because you find it annoying.
Rather than modifying the PHP code, you could think about removing it after it’s loaded. It’s very easy to do this with jQuery. First, add this to your functions.php
file:
wp_enqueue_script('jquery');
Next, in your site.js
file, add this code:
<script type="text/javascript" > jQuery(document).ready(function($){ $('.nav li a').removeAttr('title'); } </script>
Again, I don’t really recommend doing this, but this is how to accomplish it.
Related Posts:
- 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
- non-clickable placeholder in the 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?
- Ways to give a wp_list_pages menu link specific class names?
- I want remove last after 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 only add a top-level admin menu without it creating a sub-level-menu
- wp_nav_menu – page template name as item class
- how to assign more permission to wordpress author
- Strange behavor of wp_nav_menu by not appearing [closed]
- Keep parent page active
- Subpages in Menu Editor not Nesting
- bootstrap-navwalker will not load
- Check if menu id = $specific_id – then insert specific
- Where would I find Custom menu attributes in the database?
- Menu / div of year and months of blog posts?
- How to replace the page url for the page slug in a menu link?
- How to insert link to the default post archive into a menu
- Getting menu items like get_pages
- Add css class to dropdown
- nav_menu not displaying custom menu
- current-menu-item class is not added
- Automatically list top level menu item child pages
- Change sub-menu contents of main menu
- wp_nav_menu add class to child item with sub child
- How to remove menu installed in wp-admin by a theme? [closed]
- How to modify wp-includes without messing my wordpress installation?
- Container class not appearing on navigation menu
- Add Buddypress profile and messages link to WordPress menu [closed]
- Use wp_logout_url() in menu creation page
- Active Menu Highlighter with Subpages?
- WordPress template – How to add class to li tag if submenu exist
- Insert a div class inside wordpress menu
- Retrieve Menu name for nav_menu_item
- Wrapping link and .sub-menu with wp_nav_menu
- Bootstrap button menu on wordpress
- Want to add different text after each menu item
- How to create a menu item which is not a page
- How to make wordpress nav menu use post custom meta data
- Is it possible to make the heading on a page different text to the text of the menu item?
- How to Structure Pages and Subpages
- Add extra menu to theme
- How to list only root pages?
- Page menu with one image link instead of page title?
- Is there a way to tell menu items to force non-SSL URLs?
- Search if menu item has child in wp_get_nav_menu_items hook
- Trouble hiding menu on single page
- How to customize navigation menu in theme which is converted from pure html theme
- enqueue script during add menu items means before save menu items
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- WP nav menu + Bootstrap, add role=”menu” to UL
- Custom HTML output for registered navigation
- custom walker class for own menu?
- 2 item in a same menu pointing to 1 page
- Dropdown primary navigation menu not working
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- New wp menu menu styling
- How do I make it so a post only shows in its category archive but not the home page?
- Im having trouble centering menu items in footer due to “flexbox”
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- Is it all right to put the whole tag into template_part file?
- Mobile menu displays submenus on top of parent. Need it to display right below on an own line
- Misleading behaviour on Menu & Theme location
- For a menu custom link (without a link) a “#” is appended. Can this just be blank, i.e. NO link?
- save_post() on Menu Save
- How to build a menu that change style over a section
- Highlight inner post menu current item
- update_post_meta breaking wp_update_nav_menu_item
- Menu dropdown disapears behind slider
- Generate Submenu based on Parent Page using If Statement
- Building a menu from a large number of pages?
- 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
- Access CSS Classes specified in Menu options
- Query for menus in backend (BE)
- Next/previous a-like single navigation
- How to output the menue structured for tabbed 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
- Making current_page_item work with wp_list_pages in sidebar on post pages
- 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
- Add acf custom fields so sub item in menus