Main Content
Using WC Images
Adding Dynamic Captions
If you would like to give readers the option to toggle an image caption on and off, you can use WC Images.
To create a dynamic caption, do the following:
- Enclose your image in
figuretag, as shown below. - Make sure your
figurehas a uniqueidand theimage-infoclass as shown below. - Enclose your caption in a
figurecaptiontag just below the image tag, as shown below.
<figure id="example01" class="image-info">
<img alt="Example Image" src="image URL here" /></figure>
<figcaption>Insert image caption here</figcaption>