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

    Using the Masonry Gallery, the lightbox of the image(s) displays (on the bottom left) the title of the image. I don’t want to display the title of the images, instead, I would like to display the (Alt text) of the image and only when I chose to have a description. This is because for the most of my images I don’t want to display any title but for some of them I need to display a custom title/description.
    Please help.


    Hi ymcrodos!

    See here,

    And then change the line to this.

    return encodeURIComponent(item.el.find('img').attr('alt'));

    That should have it display the alt text.



    I changed the
    return title;
    in /enfold/js/avia.js and line 847, to
    return encodeURIComponent(item.el.find(‘img’).attr(‘alt’));
    but the lightbox photos in masonry gallery still display the title (name) of the images and not the Alt text.
    What I do wrong?



    It seems to be working fine on my XAMPP setup. Are you sure the images have an alt text set?


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