If you have defined titles for the media images in your WordPress website and want to disable the title when you hover on your image on front-end of the website then it could be a real pain because it will require editing to each media image and manually removing of the title can take a lot of time.

hide image title on hover

In order to remove all the title from all the media images of WordPress in bulk, the below code can used in the functions.php file of your Child theme.

// Title Removal from WordPress image
add_filter( 'wp_get_attachment_image_attributes', 'remove_image_text');
function remove_image_text( $attr ) {
unset($attr['title']);
return $attr;
}

OR

the below JavaScript code can be used before the close of your head tag. For Avada theme users, you can put the below code in Theme Options -> Advanced -> Code Fields -> Space Before Head section.