Create Beautiful Responsive Photo & Video Galleries For Your Site in Minutes

Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

How to Put WordPress Images Side by Side (4 Easy Ways)

How to Put WordPress Images Side by Side (4 Easy Ways)

Written By: author avatar Mariona Torrent Pi
author avatar Mariona Torrent Pi
Mariona is a Growth Specialist at Envira Gallery, where she helps creatives show their work on sites that load fast and rank. She has been writing about marketing and WordPress for over four years, and came to it from an advertising agency.
    

WordPress puts every photo you add on a line of its own. Add a few, and the before-and-after or the pair of product shots you planned turns into a long scroll.

Putting WordPress images side by side doesn’t take any code. There are four easy ways to line them up in a row, from a 30-second fix built into WordPress to a full gallery.

I tested each one on a fresh WordPress site, on a desktop screen and on a phone. You’ll see what each method looks like and which one fits your photos.

In This Article:

The Gallery block is built into WordPress, so there’s nothing to install. It’s the quickest way to put a few photos in one neat row.

Open your post or page in the editor and click the + button. Search for “Gallery,” add the block, and choose two or more photos from your Media Library or upload new ones.

Step 2: Set the Number of Columns

With the Gallery block selected, find Columns in the Settings panel on the right. It shows three per row by default, so for a single row, set Columns to the number of photos you’re showing.

Leave Crop images to fit on, as it is by default, so every tile comes out the same size.

The WordPress Gallery block in the block editor showing three photos in one row, with the Columns setting at 3 and Crop images to fit switched on in the block settings

Here are those three photos on the live page:

Three photos of a waterfall, a swan paddle boat on a lake, and two parakeets displayed side by side in one row on a WordPress page

One thing I noticed while testing: add a fifth photo to a three-column gallery and the short last row stretches to fill the width. Those two photos come out wider than the rest.

If a photo already has a caption in your Media Library, it shows on top of the photo. You can clear it in the block.

How to Place Images Next to Each Other With the Columns Block

The Columns block splits part of your page into two or three side-by-side areas. Each photo gets its own space, with its caption underneath instead of on top.

Add a Columns block from the + button and pick 50 / 50 for two photos, or 33 / 33 / 33 for three. Then add an Image block inside each column.

For a caption, click the photo and use Add caption in its toolbar. The Columns block settings also have a Stack on mobile toggle, which is on by default.

A two-column Columns block in the WordPress editor with a photo and caption in each column, and the Stack on mobile toggle switched on in the block settings

On the live page, each caption sits under its photo:

Two photos placed next to each other with the WordPress Columns block, a waterfall on the left and a deer in a meadow on the right, each with its own caption

Each photo keeps its own shape in a Columns block, so two portraits with different proportions end at different heights and their captions won’t line up.

How to Put an Image Next to Text in WordPress

The same block handles a photo with text beside it. Choose the 33 / 66 layout, add an Image block to the narrow column, and type your paragraph in the wide one.

It suits recipes or product notes, where the photo and its description belong together.

How to Line Up Images by Aligning Them Left

Add each photo as its own Image block, then click the photo and open Align in its toolbar.

Choose Align left on each photo. They line up from the left, one next to the other, and the text that follows wraps into the space beside them.

The Align menu open on a WordPress Image block toolbar with Align left selected, and two photos lined up on the left with text flowing beside them

On the live page, the paragraph flows around both photos:

Two left-aligned photos of a deer and a pair of parakeets sitting side by side, with a paragraph of text wrapping into the space beside them

That wrap suits a story told around a couple of photos. For a row of their own, the Gallery or Columns block works better.

Where aligned photos sit depends on your theme, and some themes push them out to the page edge. Our guide to image alignment covers the other options.

The built-in blocks are perfect for two or three photos. When you’re showing a bigger set, or adding photos over time, a gallery plugin keeps every row tidy for you.

Envira Gallery is a WordPress gallery plugin, and its free version, Envira Gallery Lite, covers everything in this section.

In your dashboard, go to Plugins » Add New Plugin, search for “Envira Gallery,” and click Install Now, then Activate. Next, go to Envira Gallery » Add New and give your gallery a name.

Click Select Files from Your Computer to upload photos, or Select Files from Other Sources to pick ones from your Media Library. They appear under Currently in your Gallery, where you can drag them into order.

The Envira Gallery editor showing five photos added to a gallery, each with its title under the thumbnail

With your photos in, the next step is the row itself.

Step 2: Choose How Many Photos Go in Each Row

Open the Config tab and find Number of Gallery Columns. It starts on Automatic, and you can switch it to anything from one to six columns.

Automatic fills each row with photos of the same height, so mixed portrait and landscape shots still line up. Only full rows reach both edges, though, so a short last row or a one-row gallery sits to the left.

For two or three photos side by side, I’d pick a fixed number of columns instead. Choose Two Columns or Three Columns, and Column Gutter Width appears so you can set the space between photos.

Our tutorial on spacing out gallery photos goes into more detail. For tiles of the same size, switch on Crop Images? in the same tab. It’s off by default, so each photo keeps its own shape.

Step 3: Add the Gallery to Your Post With the Envira Gallery Block

Click Publish to save the gallery. Then open your post, add the Envira Gallery block from the + button, and pick your gallery under Search for a Gallery.

In the free version, the block’s Select Layout setting lists the same column choices, so you can change the number of columns without leaving your post.

The Envira Gallery block in the WordPress editor with the Pacific Northwest Trip gallery selected and its photos lined up in one row

With more photos on Automatic, every full row runs edge to edge at the same height:

An Envira Gallery gallery on a WordPress page with photos of waterfalls, wildlife, and city streets lined up in two even rows

Clicking any photo opens it full screen in a lightbox, which is on by default in every new gallery.

You can add the same gallery to any other page, and one edit updates it everywhere. For small previews that open larger photos, see our tutorial on thumbnail galleries.

Automatic is the one layout in the free plugin. Other looks, like a masonry image gallery, come with a paid plan.

Keep Every Row of Photos Looking Neat

Adding to your photos over time? Envira Gallery keeps them lined up in neat rows, opens each one full screen with a click, and puts the same gallery on any page you like.

How to Keep Side-by-Side Images Looking Good on Phones

A row that looks perfect on your laptop can look very different on a phone. Each method handles small screens its own way, and these are the results from my tests:

  • Gallery block: at most two photos per row. A two-photo gallery stays side by side, while three or four columns break into pairs.
  • Columns block: the photos stack, because Stack on mobile is on by default. Switch it off to keep them side by side.
  • Align left: the photos stack.
  • Envira Gallery on Automatic: the rows rearrange to fit. A row of five became a row of two and a row of three.

Here are the Gallery block and the Columns block side by side on a phone:

Two phone screens comparing side-by-side photos: the Gallery block keeps two photos in one row, while the Columns block stacks them one above the other

Stacking isn’t a bad thing, since one large photo is often easier to see on a small screen than two tiny ones. Our guide to responsive gallery grids has more on galleries for phones.

If two photos must stay together on a phone, like a before-and-after, use a two-photo Gallery block. Then open the page on your own phone before you share it, so you see exactly what visitors will see.

Which Method Should You Use to Put WordPress Images Side by Side?

All four methods are free, so the right one comes down to your photos:

MethodBest forWatch out forOn a phone
Gallery blockA quick row of two to four photosA short last row stretches widerTwo per row at most
Columns blockPhotos with their own captions, or a photo next to textPhotos of different shapes end at different heightsStacks unless you switch off Stack on mobile
Align leftPhotos with text wrapping beside themPosition changes from theme to themeStacks
Envira Gallery (free)Bigger sets you’ll add to, shown on more than one pageOn Automatic, a short row sits to the leftRows rearrange to fit

If you want two photos side by side in a minute: use the Gallery block with Columns set to 2.

If each photo needs its own caption: use the Columns block.

If your text should flow around the photos: use Align left on each Image block.

If your photo collection keeps growing: use Envira Gallery, so new photos drop into the same rows.

FAQs About Putting WordPress Images Side by Side

How do I put two pictures side by side in WordPress?

Add a Gallery block, choose your two pictures, and set Columns to 2. If each picture needs its own caption, use a two-column Columns block instead.

How do I put an image next to text in WordPress?

Use a Columns block with the image in one column and your text in the other. For text that wraps around the image, set the Image block to Align left or Align right.

Why are my WordPress images stacking on top of each other?

Each Image block takes a full line by default, so separate images stack. Put them in a Gallery or Columns block, or align each one left.

Do side-by-side images stay side by side on mobile?

It depends on the method. A Gallery block keeps up to two per row on a phone, while Columns blocks and left-aligned images stack by default.

Can I put images side by side without a plugin?

Yes. The Gallery block, the Columns block, and image alignment all come with WordPress and need no code. A gallery plugin helps once you have lots of photos.

How do I add space between images placed side by side?

In Envira Gallery, you set it with Column Gutter Width, or with Automatic Layout: Margins when the gallery is on Automatic. For the Gallery and Columns blocks, look for a spacing option in the block’s Styles settings, which some themes don’t show.

Now your photos can sit side by side, whether it’s a quick pair or a gallery that grows over time. If you’re deciding how a bigger gallery should look, be sure to check out our post on WordPress gallery layouts and which one to use when.

Not using Envira Gallery yet? Get started today!

Don’t forget to follow us on Facebook and X (Twitter) for the best photography tips, resources, and WordPress tutorials.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how Envira Gallery is funded, why it matters, and how you can support us.

author avatar
Mariona Torrent Pi Growth Specialist
Mariona is a Growth Specialist at Envira Gallery, where she helps creatives show their work on sites that load fast and rank. She has been writing about marketing and WordPress for over four years, and came to it from an advertising agency.

The Best Drag and Drop WordPress Gallery Plugin

Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.

Enter the URL of your WordPress website to install

Upgrade to Envira Gallery Pro

Unlock even more powerful features designed to make your galleries even more beaituful.

Video Galleries

eCommerce

Social media Sharing

Adobe Lightroom

And much more!

Popular on Envira Gallery Right Now!

How to Create a Beautiful Masonry Image Gallery in WordPress

How to Create a Beautiful Masonry Image Gallery in WordPress

Are you looking to showcase your photography or image collection…
Polished and Protected: How to Watermark WordPress Images

Polished and Protected: How to Watermark WordPress Images

Are you wondering how to add a watermark to images…

Comments

  1. I’ve been searching high and low for how to do this and this article has been the most helpful. However, does this not work for sites/blogs using photos with captions? I have linked my photos and captions to portfolio pieces on my website, and it’s not allowing me to align side-by-side.

    -Brittany

  2. I have spent the last hour trying to put my photos side by side – these instructions helped, thank you so much!

Add A Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Copyright © [#this year :%Y] Envira Gallery, LLC. Envira Gallery is a trademark of Envira Gallery, LLC.