Hi,
I am using this function to remove the hover alt/title text on the product images but for some reason it is not working in Woodmart. Can you check what’s wrong with this function please?
/*----------------------------------------
// Remove Image Title on hover
//--------------------------------------*/
function removeImageTitleOnHover(){
?>
<script>
jQuery(document).ready(function() {
var imgTitle;
jQuery("img").hover(function(){
imgTitle = jQuery(this).attr("title");
jQuery(this).removeAttr("title");
}, function(){
jQuery(this).attr("title", imgTitle);
});
});
</script>
<?php
}
add_action('wp_footer', 'removeImageTitleOnHover');
It’s the hover over the thumbnails in the gallery – see here: https://ugames.com.au/product/kids-18pc-tinned-game-asst/
Thank you in advance!