How do I add a photo gallery to my website?

To add a photo gallery to your website, pick your best recent photos, give each one a descriptive file name and short alt text, and choose the page it supports. Place the gallery near related text, size the photos for screens, and swap out old shots so the gallery stays current.

A small-business photo gallery shows real work: finished jobs, the space, the products and the people a customer will meet. Recent photos beat old ones, because a customer reads the gallery as what the business does now.

Pick photos that each show something different. Three shots of the same deck from three angles read as one photo. A deck, a patio and a fence read as range.

Leave out blurry, dark or heavily filtered shots. A phone photo in good light is enough.

A photo gallery goes on the page it supports, near the text about the same work. Google’s image guidance says to place images near relevant text and on pages relevant to the image’s subject.

Kind of photos Where the gallery goes Why
Finished jobs for one service That service’s page The proof sits beside the description
Work across all services A Work or Projects page, linked from the home page One place to browse the range
The shop, office or dining room The About or Visit page Shows customers what to expect when they arrive
A one-time event A post about the event Dated photos belong with a date

A separate Gallery page works too, but only if the menu or the home page links to it.

How should I name photo files and write alt text?

Photo file names and alt text tell search engines and screen readers what a photo shows. Google’s Image SEO page gives the file-name rule plainly: a short, descriptive name like my-new-black-kitten.jpg is better than IMG00023.JPG.

The same Google page calls alt text the most important attribute for image metadata. Alt text also serves people using screen readers. Google warns against stuffing alt text with keywords.

The W3C’s tutorial on informative images says alt text should convey the meaning of the image, which usually isn’t a literal description. For a gallery, that means saying what the photo shows about the work.

Weak alt text Better alt text
photo Finished paver patio with a fire pit
pool pool cleaning pool service best pool Pool after a green-to-clean treatment
IMG_4471 Bakery counter with the weekend pastry case

What website accessibility means covers alt text alongside the rest of an accessible page.

A photo gallery stays fast when the photos are sized for screens and load as the visitor scrolls. Full-size camera files are far larger than any screen needs.

  1. Resize before upload. A gallery photo rarely needs to be wider than the page it sits on.
  2. Use a format Google supports. Google lists BMP, GIF, JPEG, PNG, WebP, SVG and AVIF.
  3. Lazy load the photos. web.dev’s guide to lazy loading says the loading attribute lets images load as the visitor scrolls, with no extra code library.
  4. Set width and height. The same guide recommends width and height on every image, so the page doesn’t jump as photos arrive.

A gallery request goes right the first time when everything arrives in one message:

  1. The photos, at full size, not screenshots or photos pulled from social media.
  2. The page the gallery belongs on.
  3. A heading, if the gallery needs one.
  4. A caption or a few words for each photo that needs context.
  5. Any photos the new ones replace.

What to send to get a website change right the first time covers the same parts for any other change.

On reddysite, a gallery is a message: an email, or the same message in Requests in the dashboard, with the photos attached. Here’s a made-up example of one:

Please add a gallery to the Patios page with the six attached photos, under the heading “Recent patios.” Captions are in the file names. Remove the two old photos at the bottom of that page.

reddysite’s gallery component refuses any photo without alt text and loads photos lazily, so a long gallery doesn’t hold up the page. The change is built, a person checks it, and an email says when it’s live.

How changing your website by sending a message works has the steps. How often a business website should be updated puts new photos on a regular schedule, and how reddysite builds accessible structure covers the rest of the page.

Frequently asked questions

How many photos should a website gallery have?

No standard sets a number. Pick enough to show the range of the work and stop before photos repeat each other. A gallery of your strongest recent shots says more than one with every photo from the job.

Can I use photos I found online in my gallery?

Only photos you took, paid for or have permission to use. Someone else's photo of similar work also misleads a customer about what you did. Your own phone photos of real jobs are the better choice.

Should every gallery photo have a caption?

Captions help when a photo needs context, such as the town, the service or the before-and-after stage. Google says it reads captions to understand an image. A caption should add something the alt text doesn't already say.

References

← All posts