There are two things you can do to optimize your gallery images for SEO:
- Click “Photo Gallery” from the menu on the left of your WordPress dashboard.
- Select the gallery you want to optimize.
- Next to each uploaded image there’s a text box labelled “alt/title.”
Filling these with the appropriate information helps search engine algorithms make better sense of your images, which directly helps your website’s SEO.
Additionally, you can head to your Photo Gallery’s options and enable “href attribute.”