Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Easily Put Images Side by Side in WordPress

When we first started blogging, getting images to line up often felt more frustrating than fun.

But we soon realized that placing images side by side isn’t just about making things look good—it actually helps readers understand and enjoy the content more.

Over time, we’ve picked up some simple techniques to make this process easier, and placing visuals next to each other has become one of our go-to ways to build beautiful photo galleries.

In this tutorial, we’ll walk you through two easy methods for displaying images side by side—one using the built-in WordPress block editor, and the other with the Envira Gallery plugin.

By the end, you’ll be able to improve your content layout and create a more engaging experience for your visitors.

Putting images side by side in WordPress

💡Quick Answer: How to Put Images Side by Side in WordPress

There are two main ways to put images side by side in WordPress, and the best one depends on your needs:

  • Use the Built-in Gallery Block: This is the simplest method and is perfect for creating basic side-by-side image layouts without needing any extra plugins.
  • Use a Gallery Plugin: For more control and advanced features, a plugin like Envira Gallery is the best option. It lets you build beautiful, responsive galleries with features like lightboxes, albums, and social sharing.

Why Add Images Side by Side in WordPress?

Adding images side by side can enhance the visual appeal of your WordPress website by creating a more interesting layout.

Side-by-side images can also help make efficient use of your website space, allowing you to fit more visuals within a limited area.

For example, if you have a photography website, then arranging images side by side will help you make full use of your WordPress page by displaying pictures in an aesthetically pleasing way.

Additionally, sometimes, you may want users to compare two images on your WordPress blog. Placing them side by side will make it easier for people to analyze and understand the differences between the images.

Having said that, we’ll show you two easy ways to place images next to each other. The best method depends on what you need.

For most simple cases, the built-in WordPress block editor works perfectly. If you want to create more advanced photo galleries with extra features, then using a plugin is the better choice.

You can use the links below to jump to the method you prefer:

Method 1: Add Images Side by Side in WordPress Using the Block Editor

If you are looking for a simple way to add images side by side using the Gutenberg block editor, then this method is for you.

The block editor offers a Gallery block functionality that lets you easily display images in rows and columns.

First, you’ll need to create a new post/page or edit an existing one to open the content editor. Once you are there, click the ‘Add Block’ (+) button at the top left corner of the screen to open up the block menu.

From here, simply locate and add the Gallery block to the page or post.

Upload images for the gallery
Step 2: Upload Your Images

After that, you can easily add images to your gallery block from the computer by clicking the ‘Upload’ button.

You can also select images from your WordPress media library by clicking on the ‘Media Library’ button.

As you can see, we’ve added 2 images to our Gallery block, and WordPress has automatically positioned them side by side.

Two images added to the block

If you decide to add a third image, then you must click the ‘Add’ button from the block toolbar at the top.

This will open the media library from where you can add a third image to your Gallery block. Once you do that, you’ll see that WordPress has now simply resized the images to automatically place them side by side.

Add three images to the block

However, if you decide to place a fourth image in the Gallery block, it will be placed under the other images.

To fix this, you can change the number of columns for your gallery. This setting controls how many images will appear side-by-side in each row.

For instance, if you want two images side by side and two more beneath them, you can set the Columns to 2.

Change column number to display images side by side

You can also crop images so that they align, adjust image sizes, link them to different pages, and change the background color from the block panel.

Pro Tip: For the best results, we recommend using images that all have the same dimensions or aspect ratio. If your images don’t line up perfectly, you can turn on the ‘Crop’ option in the block panel to make them fit together cleanly.

For detailed instructions, see our beginner’s guide on how to create an image gallery in WordPress.

Step 4: Publish Your Changes

Once you are done, don’t forget to click the ‘Update’ or ‘Publish’ button to store your changes.

Now, just visit your website to view the images side by side.

Images side by side preview

Method 2: Place Images Side by Side in WordPress Using a Plugin (Easy Way)

While the built-in Gallery block is perfect for simple layouts, you’ll need a plugin if you want to create more advanced photo galleries with features like beautiful lightboxes, albums, and social sharing options.

For this, we recommend Envira Gallery. It’s the best WordPress gallery plugin on the market, and in our experience, it’s incredibly easy to use while offering powerful features.

For more details about its features, you can take a look at our Envira Gallery review.

First, you’ll need to install and activate the Envira Gallery plugin. For more details, check out our step-by-step guide on how to install a WordPress plugin.

Note: Envira Gallery also has a free version that you can use. However, we will be using the Pro plan for this tutorial.

Upon activation, head over to the Envira Gallery » Add New page from your WordPress dashboard.

Once you are there, you will have to give your new gallery a title. We’ve called ours ‘Example Gallery’.

Give your new gallery a name

After that, upload the images you want to use from the computer by clicking the ‘Select Files From Your Computer’ button.

To upload images from the media library, click the ‘Select Files from Other Sources’ button.

Step 3: Edit Image Metadata (Optional)

Once you’ve uploaded the images, scroll down to the Gallery section to view them.

From here, you can give your images a title and alt text.

Images uploaded to Envira Gallery

The title appears when a user hovers over the image and also displays below the image in the lightbox, which is the full-screen pop-up view.

To edit the title and alt text, click the ‘Edit’ button on an image in the gallery.

Click the Edit button to edit an image in your gallery

You can then change the title of your image and enter alt text, which is helpful for your WordPress site’s SEO.

If your title describes the image, then you can simply repeat it for the alt text.

Setting the title and the alt text for the image

Once you are done, please make sure you click the ‘Save Metadata’ button before closing the window.

If you fail to do so, then any changes you made won’t be saved in the gallery.

Click the Save Metadata button to save your changes

Finally, scroll back to the top of the page and click the ‘Publish’ button to save the image gallery you just created.

After that, head over to the WordPress page or post where you want to add it.

Click the Publish button to publish your gallery, so you can use it on your site
Step 5: Add the Envira Gallery Block to a Post or Page

Once you are there, click the ‘Add Block’ (+) button at the top left corner of the screen to open the block menu.

From here, locate and add the Envira Gallery block to the page/post.

Add Envira Gallery block

Next, you’ll have to select the gallery that you created from the dropdown menu in the block itself.

Step 6: Configure Layout and Publish

To display the images in the gallery side by side, go to the block panel at the right corner of the screen.

From here, scroll down to the ‘Select Layout’ section and choose the number of columns from the dropdown menu. Your images will now be displayed side by side on the WordPress page.

Change columns number from the Select Layout dropdown menu

You can also change the gallery margins, enable a beautiful animated filtering effect (known as Isotope), and configure lightbox settings from the block panel.

Once you are done, don’t forget to click the ‘Publish’ or ‘Update’ button to store your settings.

Now, you can visit your website to view the images displayed side by side.

Images side by side in WordPress

The user can now click on any image to see the full-sized version in a lightbox.

Moreover, they can scroll through the images using the lightbox, too.

Viewing an image from the Envira gallery in a lightbox

If you want to add more images to your gallery, then you can go back to it by visiting the Envira Gallery » All Galleries page in your WordPress dashboard.

Once you are there, simply click on the name of your gallery to edit it.

Editing a gallery you've already created in Envira Gallery

Any changes you make to your gallery will appear wherever you’ve placed it in your posts, pages, or sidebars. You don’t need to add it to these again.

Bonus: Align Images in WordPress

When you are adding two images side by side, they must align together to create a cohesive and visually appealing look.

Even if you are adding a single image to your WordPress blog, you will still want to align it with your content to create a visual balance.

You can easily align images in the WordPress block editor by clicking the ‘Align’ button in the toolbar above the block.

This will open some options from where you can shift your image to the right or left, make it the same width as the container, or use the full-width option so that the image’s width is the same as the rest of the page.

Use alignment settings to resize an image

Other than that, you can also use the Column block to align your image with the content. To do this, you will have to select the 50/50 variation.

Once you do that, you can add an image block that perfectly aligns with your content.

Add Block using column

Additionally, you can also wrap text around the image, use the group block, add the cover block, or do so much more to align images together or separately.

For more information, see our beginner’s guide on how to align images in the WordPress block editor.

Frequently Asked Questions About Adding Images Side by Side

Here are some questions that our readers have frequently asked about adding images side by side in WordPress:

How do I put an image and text side by side in WordPress?

The best way to place an image next to text is by using the Columns block.

First, add the Columns block and choose a layout, like 50/50. Then, you can add an Image block into one column and a Paragraph block into the other. This gives you a clean, side-by-side layout.

What is the best way to align images of different sizes side by side?

While the Gallery block is great for uniform images, the Columns block offers more flexibility for different sizes. You can use it to create a 70/30 or other custom layouts.

For more advanced control, a plugin like Envira Gallery allows you to create custom grids that can handle various image dimensions gracefully.

Will my side-by-side images stay next to each other on mobile devices?

Typically, no. Most modern WordPress themes are responsive, which means that image blocks placed side-by-side on a desktop will automatically stack vertically on smaller screens.

This is done to ensure the images are large enough to be seen clearly on a phone, providing a better user experience.

We hope this tutorial helped you learn how to put images side by side in WordPress. You might also want to go through our guide on how to change block height and width in WordPress and our guide on adding tables in WordPress posts and pages.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

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

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

12 CommentsLeave a Reply

  1. These Gutenberg tutorials are seriously great. For someone like me who learned how to make websites in Elementor, these articles are priceless. I don’t have to scramble to find a way to do such a simple thing in Gutenberg because you have tutorials for it.

  2. I’ve used HTML tables in the past. I’ll try this feature the next time I need to use more than one image in the same location.

  3. Is there a way to have “nested” galleries? Would this be an “album”? And would Envira accomplish this? Example: I need to build an artist’s website, with a dedicated page for images. I need to have a “cover” image for separate bodies of artwork (painting, sculpture, outdoor sculptures, ceramic vessels, etc.). So that when you click on it, it opens another gallery of works within a given category (paintings, small sculptures. large sculptures, etc.) And I’d like to be open those images in a slideshow format. Is there an easy way to do this? Most of the templates only allow for single image galleries (i.e. what you see is what you get, only larger, when you click on it). The only other workaround would be to link the cover image to a hidden pager each category?

    It’s frustrating to know what I want, but not how to DO IT…

    • For what it sounds like you’re wanting, you would want to take a look at Envira’s albums and that should be what you are looking for.

      Admin

  4. This looks very promising and I’ll use it in near future. I would have tried to load a 2 column table and then import pictures into it but this looks great!
    Thanks.

  5. Always good to get a suggestion. All that is on my blog already but it takes a kick up the pants to get me to utilise things. Thanks.

  6. This article help me out because I wondering if side by side to give my blog post a different look I’ll definitely using it the blog post. For sure thanks

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.