Mark J Kilcoyne wrote:
Did I do this right? It doesnt seem to be working.
<div class="g-mosaicgrid-image">
{% if item.titleURL %}<a target="{{ item.titleTarget|default('_self')|e }}" href="{{ item.titleURL|e }}">{% endif %}<img src="{{ url(item.img)}}" {{ item.img|imagesize|raw }} alt="{{ item.title|e }}">{% if item.titleURL %}</a>{% endif %}
</div>
I copied from this...
{% if item.titleText %}
<div class="g-mosaicgrid-item-title">
{% if item.titleURL %}<a target="{{ item.titleTarget|default('_self')|e }}" href="{{ item.titleURL|e }}">{% endif %}
{{ item.titleText|raw }}
{% if item.titleURL %}</a>{% endif %}
</div>
{% endif %}
This worked for me perfectly. Thanks for sharing! I think this should be standard in the particle users more frequenly will click on the image rather and a title