We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Hide gallery outer ul if the gallery fields are empty

Someone October 14, 2014 by Someone

Can someone help me with this… I'm not sure if i'm doing it the right way but I want to know if the gallery is empty can you hide the outer ul? or is there an alternative to what i'm doing?

Thanks in advance!

<ul class="gallery">
    {{ gallery }}
        <li>
            <img src="{{ img }}">
            <div>{{ title }}</div>
        </li>
    {{ /gallery }}
    </ul>
Answered by Shane!
>>>>>>> Answered <<<<<<<
4 Replies
2 Followers