Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1410312

    Dear Enfold Team,

    on the linked page we have added a gallery element with three images. All three images have been given an image title and in the advanced settings we have set the lightbox options to show the image title. However, image titles are now randomly shown or hidden. Apparently the title of the first image is always hidden. We have tested with Firefox, Chrome and Safari.Do you know what could be the reason for this?

    Thanks for your help

    #1410410

    Hey Videmi,

    Thank you for the inquiry.

    The reason the lightbox title is not displaying could be due to the removal of the title attribute of the gallery items. Please check if you have added any custom scripts or modifications that may be responsible for removing the title attribute.

    In our own installation, we created a similar image gallery, and the titles of the images displayed correctly in the lightbox container. Therefore, it’s possible that a customization or modification specific to your installation is causing this issue.

    I recommend reviewing any custom code or modifications you have made that could affect the gallery functionality. Look for any code that modifies the image gallery or removes the title attribute.

    Best regards,
    Ismael

    #1411182

    Hello Ismael,

    thank you for your reply. We have checked the custom css and found no modification. We have also not implemented any changes to a php. We have given a title to all images within the gallery, but the title of the first image is not displayed. In the HTML code of the page we could see that the area which should contain the title <div class=”mfp-title”></div> is empty. Do you have any ideas?

    Thanks for your help!

    #1411215

    Hi,
    Your site has this script insatlled that removes the title attribute on hover, this is what is causing your issue:

    (function($){
      $("*").hover(function(){
        $(this).removeAttr("title");
      });  
    })(jQuery);

    check your child theme functions.php

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.