• Resolved LVRuss

    (@lvruss)


    OK what am I missing? I want either the title, caption, or description to show under the thumbnail in the gallery but can not find a way to make it happen. I have searched for hours through the documentation and read support post that go all the way back to https://wordpress.org/support/topic/plugin-media-library-assistant-gallery-thumbnail-captions?replies=7 from 3 years ago and have come to the conclusion that there should be a caption of some sort below the images already…but there isn’t. The information shows up using mla_rollover_text but here’s my issue: I’m building a genealogy site and already have over 500 images of US Census reports from 1790 to 1940 and having to move the cursor over each image one at a time to find a specific report someone might be looking for is not going to work. It should be possible to see what report a thumbnail links to by just scrolling down the page. Here’s the code I’m using. [mla_gallery mla_style="theme" mla_rollover_text="{+title+},{+description+}" mla_caption="{+caption+}" post_parent=all post_mime_type=image columns=5 attachment_category='images' ] which does what I want as far as displaying thumbnails of the report images and the mla_rollover but there is no text of any kind below the images no mater how I rearrange the mla_caption= content, and no mater what I do with or without mla_rollover. What am I doing wrong. Is there or is there not supposed to be or at least a way to make a caption, title, file name, something show below the image in a gallery? The page I’m using this on is at http://www.russperry.com/WP/photos-2/ (access to this page is restricted to registered members but I’ll open it to anyone who needs to see it to answer this for me.)

    https://wordpress.org/plugins/media-library-assistant/

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

    (@dglingren)

    It’s good to hear from you again – it’s been quite a while since your last topic.

    Thank you for all of the time you’ve taken researching your issue, and for posting a link to the example page from your site; very helpful. I was able to access the page and use the Developer Tools in Internet Explorer to identify the immediate problem.

    The captions are in fact there, but they are invisible. Your theme’s style.css file includes this entry starting on line 1349:

    .gallery-caption {
    	bottom: 0;
    	box-sizing: border-box;
    	font-size: 12px;
    	left: 0;
    	line-height: 1.5;
    	margin: 0;imag
    	max-height: 50%;
    	opacity: 0;
    	padding: 6px 8px;
    	position: absolute;
    	text-align: left;
    	width: 100%;
    }

    The opacity: 0; element of this entry is rendering the captions invisible. If you remove it, the captions show up.

    You wrote “ I want either the title, caption, or description to show …” but your shortcode text includes mla_caption="{+caption+}", which simply replaces the caption with itself. You might try something like this to compose a caption from all three of the sources you mentioned:

    mla_caption="{+template:({+excerpt+}|{+description+}|{+title+}|no caption)+}"

    This example uses a Content Template to select the first non-empty value from the excerpt/Caption, Description or Title values of each item. In the unlikely event that all three are empty the literal “no caption” is displayed.

    The current WordPress version fills in the Caption field when the item is added to the Media Library. Older WordPress versions filled in the Description field but not the Caption; this was a long-standing annoyance.

    I hope the above suggestions get you the results you want. I am marking this topic resolved, but please update it if you have problems or further questions about composing the caption values you need. Thanks for your long-standing interest in the plugin.

    Thread Starter LVRuss

    (@lvruss)

    Thank you for your rapid response and your solution. This I would never have found on my own. Great plugin. Wish I had time and inclination to learn how to really use it. Have a lot of work to do sorting out all those census reports. What’s on the site now is just testing materials I’ve been using to get things working the way I want. Keep up the good work.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the kind words and confirmation of the suggested solution. Best of luck with your interesting application – let me know if there’s anything else MLA can do to make it a success.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caption under the mla gallery thumbnail.’ is closed to new replies.