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.

Cannoli Cake
This is a caption about the Cannoli Cake picture.

To create a dynamic caption, do the following:

  1. Enclose your image in figure tag, as shown below.
  2. Make sure your figure has a unique id and the image-info class as shown below.
  3. Enclose your caption in a figurecaption tag just below the image tag, as shown below.
<figure id="example01" class="image-info">
<img alt="Example Image" src="image URL here" />
<figcaption>Insert image caption here</figcaption>
</figure>

Top of page