To add product category link to gallery images, you can follow these.
#1. Hover on Gallery > Click Edit Gallery

#2. Choose an image on left side and click Gear icon on right side

#3. Click Page (left side) > Enter Store/Shop Page url (right side) > Category Dropdown will appear

#4. Choose a product category from dropdown

#5. Save, we will have.
