Thanks for your questions and for all of the details you have added as you worked through the development of your [mla_gallery]
shortcode. You are clearly making progress. Thanks as well for the link to your site, which is very helpful.
Your struggles with the CSS margin:
style look like an unfortunate conflict with some code in the MLA plugin that attempts to make up for a bad design decision back in the early MLA versions. I looked at the HTML generated for your site and I think MLA is deleting the margin:
style you are adding to your mla_style template – not your fault!
I think you can avoid this problem in one of two ways. First, you can try splitting the style into individual components, i.e.:
margin-top: 0px;
margin-left: 0px;
margin-bottom: 1.5em;
margin-right: 0px;
You can also suppress the MLA-generated styles completely and put the styles you want in your theme’s stylesheet. Add mla_style=none
to your shortcode for that alternative.
To limit your list to the six most recent documents you can add posts_per_page=6
to your shortcode. You already have the right orderby
parameter in place.
To get the icon and the caption on the same line you can try adding mla_image_attributes='align="left"'
to the shortcode. You can also try something like mla_link_text='{+filelink+}{+title+}'
if you want the title/caption text to be part of the link.
I am traveling and without access to my development system so I have been unable to test these suggestions. I regret any mistakes I may have made and hope you can adapt them to your application. I will return home on October 7 and can be more helpful after that.
I will leave this topic unresolved until I hear back from you. I hope the above will get you closer to your goal; you are doing well so far.
Thanks for your patience, your understanding and for your interest in the plugin.