Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1249286

    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

    #1249983

    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

    #1249988

    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

    #1250580

    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

    #1250581

    Hi Ismael,
    yes works very well!

    Thanks a lot!!!

    kind regards

    Jak

    #1250723

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Image and Title or Custom Alt Attribute when mouseover not working’ is closed to new replies.