Remove Image Tooltip on Mouse Hover

Sourabh Mourya

Sourabh Mourya

Sr. Software Developer
Share on facebook
Share on twitter
Share on pinterest
Share on linkedin

Just need to change this “et_pb_image_wrap” class selector to your own class selector. Paste the below script to the header or footer where you want.

jQuery(document).ready(function($){
        $( ".et_pb_image_wrap img" )
        	.mouseenter(function() {	
        		var title = $(this).attr("title");
        		$(this).attr("temp_title", title);
        		$(this).attr("title","");
        	})
        	.mouseleave(function() {
        		var title = $(this).attr("temp_title");
        		$(this).attr("title", title);
				$(this).removeAttr("temp_title");	
        	});
 });

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Stories