Title: On hover showing Title attribute
Last modified: August 31, 2016

---

# On hover showing Title attribute

 *  [sameerpanda](https://wordpress.org/support/users/sameerpanda/)
 * (@sameerpanda)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/on-hover-showing-title-attribute/)
 * Hi Sparkling team
 * On menu hover, the title attribute is showing. I want to remove that.
 * Please check my blog here [gennibbles.com](http://gennibbles.com/)
 * Help me how to remove it.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Sanjog](https://wordpress.org/support/users/sanjog/)
 * (@sanjog)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/on-hover-showing-title-attribute/#post-6956290)
 * Hi [@sameer](https://wordpress.org/support/users/sameer/) Panda
 * 1. For this you need to create child theme.Reference [here for child theme](https://codex.wordpress.org/Child_Themes)
   
   2. Now in function.php in child theme’s folder add the following code:
 *     ```
       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' );
       ```
   
 * 3. This code doesnot show anything on hover.
    4. Now activate child theme. Note:
   Please customize files of child theme, so your changes will not overwrite on 
   theme update.
 * Thank You!!
 * Reply
 *  [Free WP TP](https://wordpress.org/support/users/freewptp/)
 * (@freewptp)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/on-hover-showing-title-attribute/#post-6956424)
 * Hi Sameer,
 * I hope you are well today and thank you for your question.
 * You can try achieving this by using the child theme of Sparkling theme shared
   in the following reply.
 * [https://colorlib.com/wp/forums/topic/wrong-title-attribute-menu-with-font-awesome-icons/#post-27746](https://colorlib.com/wp/forums/topic/wrong-title-attribute-menu-with-font-awesome-icons/#post-27746)
 * Then in the functions.php file of that child theme find the following code
 *     ```
       $atts['title']  = ! empty( $item->attr_title )        ? $item->attr_title        : '';
       ```
   
 * and change it as following.
 *     ```
       $atts['title']  = '';
       ```
   
 * Best Regards,
    Movin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘On hover showing Title attribute’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sparkling/2.4.11/screenshot.png)
 * Sparkling
 * [Support Threads](https://wordpress.org/support/theme/sparkling/)
 * [Active Topics](https://wordpress.org/support/theme/sparkling/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sparkling/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sparkling/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Free WP TP](https://wordpress.org/support/users/freewptp/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/on-hover-showing-title-attribute/#post-6956424)
 * Status: not resolved