Hi there. I’ve tried a number of solutions found in other threads in an effort to remove images titles on hover with no success. The one I still have applied is placing
jQuery(document).ready(function($){
jQuery('img').removeAttr('title');
});
at the end of the avia.js document as found in this thread.
I’ve cleared out the cache and still have image titles appearing on hover. I’ve also tried these values:
jQuery(document).ready(function($){
jQuery('a img').removeAttr('title','');
jQuery('img').removeAttr('title','');
});
Any help appreciated!
Cheers
Hi,
Try adding this at the very end of your theme functions.php file:
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery('img').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
Fantastic! Thanks again!