The plugin accepts several formats for the gallery, and each of them is useful to solve your
specific problem.
The most important format, which is also accepted by many lightboxes, is the following:
If you don't need links on photos, or if you want the links only in your captions, you can also use
<div> instead of <a>.
No-image entry: text or video entry
You can also have entries without an image inside, for example to have a text or a video entry. In this
case the height and the width needed to resize an entry, to maintain its correct aspect ratio, are taken
from its CSS properties (rather than from image). For example, this could be an example of a text entry:
You can change the selector option with the following value 'div, div:not(.spinner)'. Note
that, in this case, you also need to extend the Justified Gallery's CSS rules.
Arbitrary format changing the selector
If you have a particular structure you can also change the default behaviour of Justified Gallery changing the
default selector option.
For example, assume that you have the following structure:
You can change the selector option with the following value 'figure, div:not(.spinner)'. Note
that, in this case, you also need to extend the Justified Gallery's CSS rules.
Custom captions
If you want custom captions you can also insert the caption tag inside the entries.
If present, Justified Gallery doesn't generate the caption tags, but it uses the existing one.
If you want to put links inside the captions you have to use the <div>, in the
same way we have seen in the second format.
But if you still need a link in your image, and you also want to use links inside your captions,
you can wrap the images with the anchor tag (i.e. <a>)in the following way: