Attributes missing in Lightgallery

Home Forums WordPress Theme Inshot – Photography WordPress Theme Attributes missing in Lightgallery

This topic contains 2 replies, has 2 voices, and was last updated by  CTHthemes 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18124

    JeffCCagle
    Participant

    Support Expired

    Hello,

    I’m a little confused at the setup here. It seems the functionality to display a caption is built into the lightgallery.js file, but there are no attributes (alt, title) showing on the image once it is zoomed in the light gallery. There is a div class .lg-sub-html specifically for the attribute content, which is there on the thumb, but not included in the light gallery as it is supposed to.

    See attached images.

    Thanks,
    Jeff

    Attachments:
    You must be logged in to view attached files.
    #18127

    JeffCCagle
    Participant

    Support Expired

    Just to be clear, I would like to be able to add captions/descriptions (alt/title is fine too) to the images in the popup lightgallery, not on the masonry gallery.

    #18133

    CTHthemes
    Keymaster

    You can try edit theme’s style-grid.php file like this: http://prntscr.com/hqtks3

    
    <?php echo wp_get_attachment_image($img_id, 'inshot-folio-one', false , array('title'=>esc_attr( get_the_title($img_id) ))); ?>
    
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+