Tagged: image hover
The below code is not working anymore to hide the title attribute on hover of image.
function remove_title_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘#wrap_all a’).removeAttr(‘title’);
jQuery(‘#wrap_all img’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘remove_title_attr’);
You can see it when hovering over the images in featured listings gallery
Hey,
Pleases replace your code with following one
function remove_title_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('#wrap_all a').removeAttr('title');
jQuery('#wrap_all img').removeAttr('title');
jQuery('#wrap_all div').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'remove_title_attr');
Best regards,
Yigit
perfect, that worked. thanks.