Thanks for your kind words and for your detailed questions.
The [mla_gallery]
shortcode default styles and markup are modeled on those found in the WordPress [gallery]
shortcode. The approach is to divide the width of the page evenly among the items on a row and fill the entire width of the page. That works great for images and for rows with many items, but looks less attractive in applications like yours. It might look quite a bit better when you add document titles to the gallery display.
You wrote “there is no caption/title visible.” The default upload logic does not assign any value to the Caption field for non-image items. You could add a mapping rule to the Settings/Media Library Assistant IPTC/EXIF tab to create one. You can also change the value using the mla_caption
parameter of the shortcode. For example, you could display the document Title with something like this:
[mla_gallery mla_caption="{+post_title+}" ...
With mla_caption
you can compose a caption from multiple fields, use IPTC/EXIF data, etc. to get the information you want.
You wrote “the layout/spacing of the pdf icons is very far apart and looks cascaded …” The spacing is a result of the default handling of columns=2
, and it will look better with document Titles as a caption. I had a look at the “page in question” and I can see that your theme is adding about two hundred lines off CSS styles and script to the top of the page. Many of the styles are affecting the gallery display; it’s hard to tell exactly how without a detailed knowledge of your theme.
You do have the option of using MLA’s custom style and markup templates to get complete control over the CSS styles and HTML markup of your [mla_gallery]
output. You can also use some [mla_gallery]
parameters for simpler changes; have a look at the “Gallery Display Style” section of the Settings/Media Library Assistant Documentation tab.
You wrote “I’d like to update the icon …” I agree; the “modern” flat, grey icons leave something to be desired. You can use more traditional icons supplied by MLA. Go to the Settings/Media Library Assistant Uploads tab and scroll to the bottom of the page. Check the box before “Enable MLA File Type Icons Support”, the click “Save Changes” to record the new setting. Click the “Uploads” tab after the first page refresh and you will see the new icons. They will be used in the admin screens and in the size=icon
display for [mla_gallery]
.
You can also experiment with the mla_viewer
parameter to replace the icon with a page from your PDF documents. Read the “Thumbnail Substitution Support, mla_viewer” section of the Documentation tab for more details on that alternative.
I hope that gets you started on the changes you’d like to make. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.