We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22338
    • 18 Posts
    I have something like this:
      <ul>
        <li><a href=""><img src="" alt="" /></a></li>
        <li><a href=""><img src="" alt="" /></a></li>
        <li><a href=""><img src="" alt="" /></a></li>
        ...
      </ul> 
    


    I need on each forth li to put a class.
    <ul>
    <li>...
    <li>...
    <li>...
    <li class="last">...
    </ul>

    Is is possible with maxiGallery?

    Thanks a lot!
      • 7923
      • 4,213 Posts
      You can do a custom galleryPictureTpl with phx conditional to check if the picture is last on the row.

      Eg. if you have &pics_per_row=`4` then in you template you would do:
      <li [+maxigallery.picrownumber:is=`4`:then=`class="last"`+]>
      


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 22338
        • 18 Posts
        Thank you so much!!!

        This discussion is closed to further replies. Keep calm and carry on.