Remove Title attribute from menu link
-
I want to remove title attribute in my menu. On the web, someone was sugessting this code to be inncluded in fonction.php
function my_menu_notitle( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'my_menu_notitle' ); add_filter( 'wp_page_menu', 'my_menu_notitle' ); add_filter( 'wp_list_categories', 'my_menu_notitle' );
It did work for one site in WP v3.8 but it does not work for another one I have in v3.6.1.
Any sugestions?
Thanks for your time.
- The topic ‘Remove Title attribute from menu link’ is closed to new replies.