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

    Hello, I added an image gallery ( default wordpress ) within the portfolio item.
    At the opening of the images ( with lightbox ) not seeing any title under the photo. I need to make visible the titles here “mfp-title”.
    Thanks

    • This topic was modified 9 years, 10 months ago by serg1o.
    #388826

    Hi serg1o!

    The WordPress gallery shortcode does not set titles on the link or images but we can change our magnific script to pick up the alt text instead.

    Open up /enfold/js/avia.js and on line 847 you should see this.

    if(!title) title = item.el.find('img').attr('title');
    

    And this on the next line.

    if(!title) title = item.el.find('img').attr('alt');
    

    And then make sure to set the alt text of your images as you select them for the gallery.

    Cheers!
    Elliott

    #389249

    Perfect! :-)
    Thanks

    #389282

    Hi!

    Glad we could help you. Enjoy the theme.

    Regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Image title not display [SOLVED]’ is closed to new replies.