What are the default values for the markup template?
-
context…
I recently worked through installing a dev version of this plugin, and it dropped/cleared my custom template. (I wasn’t aware this would happen — instructions said configuration wouldn’t be lost — or I would have manually copied out my template. It’s been over a year since I figured that part out, and I’ve no idea how I did it. *frustration* ) So, trying to configure a template for use in a
[mla_gallery mla_markup="craigs-template" ...
goal…
My specific goal is to change the link on the images in the gallery (from linking to the attachment page, to linking to the post page to which the image is attached) and changing the caption from “<caption>” to something else like “<caption>, from <linked-parent-post-title>”.
so far…
I’ve gone into the “Shortcodes” tab under the MLA settings, and created a new template named “craigs-template” and I’ve given it a Description (since it won’t save if everything is empty).
I’ve added
mla_markup="craigs-template"
to the[mla_gallery ...
shortcode.The display of my gallery has not changed. So I’m assuming it’s using the default values for all the template items, since I left them all blank.
It’s generates a
<dl>
list for each item (aka image) in my displayed gallery. It uses<dt>
and<dd>
for the image and meta information (below the image), respectively.So I’m trying to figure out how to change this part of each image’s display…
<dt class='gallery-icon landscape'> <a href="https://constantine.name/notre-dame-de-paris/img_2193/" data-slb-active="1" data-slb-asset="1347297058" data-slb-internal="10684" data-slb-group="8886"><img aria-describedby="mla_gallery-1-10684" width="300" height="225" src="https://constantine.name/wp-content/uploads/2016/09/IMG_2193-300x225.jpg" class="attachment-medium size-medium" alt="Sunrise" srcset="https://constantine.name/wp-content/uploads/2016/09/IMG_2193-300x225.jpg 300w, https://constantine.name/wp-content/uploads/2016/09/IMG_2193.jpg 667w" sizes="(max-width: 300px) 100vw, 300px" /></a> </dt> <dd class='wp-caption-text gallery-caption' id='mla_gallery-1-10684'> Sunrise </dd>
I want to change the
<a ...
anchor on the image to link to the parent post’s page. And in the<dd ...
, showing the meta information, I want to add “, from <linked-parent-post-title>”.So I thought I could hunt down the value for “Item” that is being used by the default template. But I can’t find that anywhere.
Thoughts?
- The topic ‘What are the default values for the markup template?’ is closed to new replies.