Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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.

    #368399

    Hi ymcrodos!

    See here, https://kriesi.at/support/topic/social-sharing-on-galleries-enfold-v-3-0-2/.

    And then change the line to this.

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

    That should have it display the alt text.

    Cheers!
    Elliott

    #368859

    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?

    #369209

    Hi!

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

    Cheers!
    Elliott

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