How to Put Images Side by Side in WordPress (Easily)

How to Put Images Side by Side in WordPress (Easily)


Shares

423

Share

Tweet

Share

Facebook Messenger
WhatsAppEmail

Do you want to put images side by side in WordPress?

Often, beginners struggle to find how to put two pictures next to each other in their WordPress posts and pages.

In this article, we will show how to easily put images side by side in WordPress (without writing any code).

Putting images side by side in WordPressPutting images side by side in WordPress

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, let’s see how to easily put images side by side in WordPress.

For this tutorial, we will be showing two different methods, and you can use the links below to jump to the method of your choice:

  • Method 1: Add Images Side by Side in WordPress Using the Block Editor
  • Method 2: Place Images Side by Side in WordPress Using a Plugin (Easy Way)
  • Bonus: Align Images in WordPress

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 galleryUpload images for the gallery

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 blockTwo 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 blockAdd 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 sort this out, you can change the number of images WordPress should include side by side in a single column.

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 sideChange 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.

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

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 previewImages side by side preview

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

If you are using the old classic WordPress editor, or if you want to create more complex galleries than the default Gallery block, then this method is for you.

We recommend using Envira Gallery because it is the best WordPress gallery plugin.

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

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.

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 nameGive 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.

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. The title appears below your image when the user brings their mouse cursor over it.

Images uploaded to Envira GalleryImages uploaded to Envira Gallery

The title also appears below the image in the lightbox popup mode, which we will take a look at in a moment.

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 galleryClick 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 imageSetting 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 changesClick 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 siteClick the Publish button to publish your gallery, so you can use it on your site

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 blockAdd Envira Gallery block

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

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 menuChange columns number from the Select Layout dropdown menu

You can also change the gallery margins, enable 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 WordPressImages 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 lightboxViewing 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 GalleryEditing 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.

Tip: If you are using the classic editor instead of the block editor, you can still use Envira Gallery.

You’ll see an ‘Add Gallery’ button above the classic editor that you can use to add an existing gallery to your post.

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

Adding an Envira gallery in the classic editorAdding an Envira gallery in the classic editor

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 imageUse 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 columnAdd 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.

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 comprehensive list of the must-have WordPress plugins (expert pick) to help grow your business.

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.


Shares

423

Share

Tweet

Share

Facebook Messenger
WhatsAppEmail
Lượt xem: 15

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *