On your WordPress website you may have a navigation menu at the top of the website that displays a title for the link in the menu if you hover the mouse over the links in the menu on there. You may want to remove those titles from the links in your menu on there. You can do this without a plugin if you add this code to your functions.php file. You may want to backup your WordPress website before you make updates to the functions.php file.
/** * Remove menu title * * @author WPSnacks.com * @link https://www.wpsnacks.com */ function no_menu_title( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'no_menu_title' ); add_filter( 'wp_page_menu', 'no_menu_title' ); add_filter( 'wp_list_categories', 'no_menu_title' );
Now if that works for you it would remove the titles from the link in your WordPress navigation menu on there.
Leave a Reply