Delete role=”navigation” from WordPress theme

In new standard of the HTML, for navigation menu, don’t use role=”navigation” anymore. To delete it from the HTML of the WordPress theme, add code below in functions.php file.