• Resolved jennl2

    (@jennl2)


    Hi there, I love the plugin it is working perfectly for what I’m working on. I just have one question. I’m having a hardtime getting the caption to show up under the thumbnail. Our images need show the image credits under the image at all times. Right now it is showing when you hover over to the image to click on it, which is awesome! I just need it to appear underneath too. Can you tell me how to do that please? Here is the shortcode I’m using: ‘[mla_gallery media_category=”discover-glacier-national-park” orderby=rand mla_alt_shortcode=gallery mla_caption=”title”]’

    Also, I’m using the media categories instead…just so you know.

    Here is the page you can see where it is in action. Just scroll down and click the photo gallery tab. https://www.tours.cadaassociates.com/package/discover-glacier-national-park/

    Thank so much for your help!!

    https://www.ads-software.com/plugins/media-library-assistant/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for the positive feedback about MLA. I am happy to see that you’re finding it useful. Thanks as well for including your shortcode text and the link to your site (which looks terrific); very helpful.

    The text “showing when you hover over to the image to click on it” is taken from the alt= attribute of the < img > tag in each gallery item. Usually, you can copy that to the caption by adding an mla_caption="{+image_alt+}" parameter to your shortcode. Notice the “{+” and “+}” delimiters around image_alt; they denote a substitution parameter.

    However, this will not help you because your shortcode includes an mla_alt_shortcode=gallery parameter. This tells MLA to perform the data selection part of the job but then hand control to the [gallery] shortcode to compose the HTML for the gallery display. None of the Gallery Display Content parameters, e.g., mla_caption, are used by the [gallery] shortcode. It looks like your site has a lightbox plugin or theme extension that intercepts the [gallery] shortcode and formats the gallery display. Here is an example of your gallery item HTML taken from your example page:

    <dl class="gallery-item">
        <dt class="gallery-icon"> <a href="https://www.tours.cadaassociates.com/wp-content/uploads/2015/04/Glacier-NPS_The-Sinopah_Upper-Two-Medinine-Lake_Glacier-NPS_960.jpg"><img width="150" height="100" alt="Image courtesy of Glacier NPS" src="https://www.tours.cadaassociates.com/wp-content/uploads/2015/04/Glacier-NPS_The-Sinopah_Upper-Two-Medinine-Lake_Glacier-NPS_960.jpg"></a> </dt>
        <dd class="gallery-caption" id="caption4337"><span class="imagecaption">Sinopah Two Medicine Lake-Image courtesy of Glacier NPS</span><br />
            <span class="imagedescription">test</span><br />
        </dd>
    </dl>

    In this example I am not sure where the “test” value in the imagedescription span comes from. If it comes from the image’s Description field you could use an MLA IPTC/EXIF mapping rule to populate the Description with your image credits.

    Without knowing more details about the lightbox you are using or how the HTML for the gallery display is created I cannot be more specific. I will leave this topic unresolved and I look forward to any additional information you can give me. Thanks for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    It has been a month since my last post in this topic and I have not seen anything further. I assume you were able to find a solution to your captioning questions.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the suggestions I posted earlier. Thanks for your interest in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Caption not showing’ is closed to new replies.