Main menu – get rid of titles?

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.