• Resolved tonyuk

    (@tonycsanders)


    I can control the caption font size using this

    mla_caption='<a href=”{+file_url+}” target=”_blank”><span style=”font-size: 10px”>{+title+}</span></a>’

    which is fine – but I wonder if there is a, perhaps more elegant, way of doing it ?

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

    (@dglingren)

    Thanks for the question and the example text; very helpful.

    You can apply any CSS styles you like to your gallery by creating a custom style template. You can also change he HTML content with a custom markup template. You can find more information about both in the “Style and Markup Templates” section of the Settings/Media Library Assistant Documentation tab. To create the Style Template:

    1. Navigate to the Settings/Media Library Assistant Shortcodes tab.
    2. Click on the “Style” view just above the templates table.
    3. Hover over the “default (default)” Style entry (for the Gallery shortcode) and click the “Copy” action link.
    4. When the page refreshes, the “Edit Template” screen will appear.
    5. Change the template Name to (for example) “caption-size”.
    6. Make the changes you need to apply the styles you’d like. For your appplication, find the mla_gallery-1 .gallery-caption style at the bottom of the template and add your font-size: 10px; style to it.
    7. Scroll to the bottom and click “Update” to save your template.

    Once that’s done you can add the template to your shortcode with the mla_style=caption-size parameter. Creating a custom markup template is very similar. Once your shortcode includes the new style template your caption parameter can simply be:

    mla_caption='<a href="{+file_url+}" target="_blank">{+title+}</a>'

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding creating and applying a custom style template to your gallery.

    Thread Starter tonyuk

    (@tonycsanders)

    How awesome is that ! Thankyou very much David. I was guilty of TLDNR and regretably skipped custom style templates in the documentation. MLA is a remarkable plugin and free ! (..but I donate to Chateau Seaview Fund, and will do so again).

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your kind words regarding the plugin and especially for your donation to the Chateau Seaview Fund. Donations, good reviews and positive feedback are great motivators to keep working on the plugin and supporting its users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.