WiscWeb - WordPress UW Theme - Building an Image Gallery for Posts
In this document, you will learn the steps to adding an image gallery element to any posts that you would like to create.
In this document:
Posts do not inherit the same Page Element options that exist within the pages section of the UW Theme. As such, there are limited opportunities to display items other than text an images within a post. Users can create an image gallery to display groups of images and captions, however.
Steps to create gallery in a post
To create the gallery, while editing a post click the Add Media button above the text editor, and follow these steps
- Click the Create gallery link on the left side
- You can now select the images you want to appear in this gallery.
- A check mark will appear in the upper right corner of each image you select. You can remove items from this gallery by unchecking images.
- Be sure to add Alt Text to any image you put into a Post or a Page to meet accessibility needs. For more information on accessibility, please review the WiscWeb accessibility document.
- You can also add or remove captions from your images.
- Once you have added your images, click the Create a new gallery button at the bottom right of the page.
- In the next screen, you can determine several options about this gallery when it appears in the post.
- In the Gallery Settings on the right, determine what the images Link To; Columns; Size; and whether to randomize the order by putting a check in the Random Order check box.
- Click Insert gallery to place the gallery into the Post. You can see what the gallery will look like, and if you need to you can edit by clicking on the Edit icon .
- Publish your post to commit the gallery.
- This item will only work on Posts. Users should look at the Image Gallery page element or a wpDataTable to display images in a grid format for Pages.
- The gallery is not "saved," so it cannot be reused in multiple posts past the original it was created in.