Hi Guys,
I’m not too sure why my last ticket was closed so I’ve created another here for the same problem that I am having with the image alt-tags.
A few months back I asked about removing Alt tags from images on the gallery. Yigit kindly provided advice on an edit to enfold/config-templatebuilder/avia-shortcodes/av-helper-masonry.php which worked perfectly at the time. Here is the old link: https://kriesi.at/support/topic/removing-alt-text-from-images/
I have updated both WordPress and Enfold to their latest versions and applied the altered line of code. The problem I have is when my galleries first load the ‘alt-tag’ is removed. However, when you click on ‘load more’ those images that are subsequently loaded show the ‘alt-tag’.
Yigit previously asked for my access details which I have included in the pvt section. If you could let me know what you find / change I can then replicate it to my live site.
Thanks for your help!
Marc
Hey Marc
Sorry for the late reply!
It seems like you have already installed a child theme and applied the changes there as instructed in other thread. I simply logged in to your dev site and activated child theme and it is working just fine.
Since you have modified the file, you do not need to add following code to functions.php file of your parent theme
function remove_title_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('a').removeAttr('title');
jQuery('img').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'remove_title_attr');
Best regards,
Yigit