D
D
Dumb2014-09-16 19:37:42
css
Dumb, 2014-09-16 19:37:42

How to add CSS class for first thumbnail in Gallery Modx?

We need to add a css class for the first thumbnail in the output. For example, getresources can have a separate template for each n-resource. Wayfinder also has similar functionality. Question: how to add css class to first thumbnail using gallery.
Gallery call:


Chunk GalRandomItem:
<article class="one_quarter">
<a href="" class="fancybox" rel="external">
<div class="push10"><img src="" alt="" title="" /></div>
<p></p>
</a>
</article>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zooks, 2014-09-16
@Dumb

You can try with CSS:

.gal-item:first-child {
...
}

S
Sergey Alpeev, 2014-09-17
@QTnub

then use the itemCls parameter

D
Dumb, 2014-09-17
@Dumb

added styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question