Hi,
i added an images and under the seo improvements a title and a Custom Alt Attribute.
Both is not showing up, when i mouse over? On the mansonry gallery it works?
Any idea? Nice would be, if the title would show up, while mouse over the image. Please see link.
Kind regards Jak
Hey Jak73,
Thank you for the inquiry.
The title of the image is there but for some reason it does not display on hover. To fix the issue, we could apply the same title attribute to the parent container or to the link tag.
Please add this snippet in the functions.php file.
add_action("wp_footer", function() {
?>
<script>
(function($) {
$(document).ready(function() {
$(".avia_image").each(function() {
var title = $(this).attr("title");
$(this).parents("a").attr("title", title);
});
});
})(jQuery);
</script>
<?php
}, 999);
Best regards,
Ismael
Hi Ismael,
thanks for your fast reply.
That works great.
Could we add the same to the images in blog overview?
Please see link in private content.
Kind regards
Jak
Hi,
You are welcome! Glad it works.
The title of the images in the blog overview page are displaying properly on our end. Where are you testing it?
Best regards,
Ismael
Hi Ismael,
yes works very well!
Thanks a lot!!!
kind regards
Jak
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon