Methods to Put Pictures Aspect by Aspect in WordPress (Simply)

  • January 6, 2023
  • elkenz
  • 6 min read

Do you wish to put photographs aspect by aspect in your WordPress content material?

Usually learners wrestle to seek out tips on how to put two footage subsequent to one another of their WordPress posts and pages.

On this step-by-step information, we’ll present tips on how to simply put photographs aspect by aspect in WordPress (with out writing any code).

Putting images side by side in WordPress

Utilizing the Block Editor to Put Pictures Aspect by Aspect

The simplest technique to get your photographs aspect by aspect is to make use of the WordPress block editor.

The block editor has a particular ‘Gallery’ block that permits you to show photographs in rows and columns.

First, you’ll must create a brand new submit / web page or edit an current one to open the content material editor. As soon as inside, click on the (+) image so as to add a brand new block.

Creating a post and adding a block to it

Subsequent, it is advisable to choose the Gallery block and add it to your web page. You could find the Gallery block within the Widespread Blocks part, or you should utilize the search bar to shortly find it.

Selecting the Gallery block to add to your post

Now, you may simply add photographs to your gallery block, by dragging them into it or by utilizing the Add button. You can even choose photographs out of your WordPress media library.

As you may see, we’ve added 2 photographs to our Gallery block. WordPress has robotically positioned them aspect by aspect.

Two images in the gallery (butterflies and apple)

What if you would like 3 photographs aspect by aspect? Right here’s what occurs if we add a 3rd picture. WordPress merely resizes the others to suit all 3 aspect by aspect:

Three images in the gallery (butterflies, apple, and blue flowers)

In the event you add a fourth picture, then WordPress will place it beneath the others.

Four images in the gallery (butterflies, apple, blue flowers, and robin)

You may change the variety of photographs WordPress ought to embody aspect by aspect in a single column.

First, click on on the Gallery block, if it’s not already chosen. On the proper hand aspect of the display screen, you’ll see the Gallery’s block settings.

Changing the settings for the gallery block

You may regulate the variety of columns right here to any quantity between 1 and 4. As an illustration, if you would like two photographs aspect by aspect, and two extra beneath them, you may set the Columns to 2.

Setting the gallery to have 2 columns rather than 3

It’s so simple as that!

If you wish to change the place a picture is positioned in your gallery, simply click on on it. You’ll then see arrows that you should utilize to maneuver it ahead or backward within the gallery.

Moving an image forward or backward in the gallery

Right here’s a completed gallery demo from our pattern submit:

The 2 column gallery in a live post

Utilizing a Plugin to Put Pictures Aspect by Aspect in WordPress

In the event you’re utilizing the outdated traditional WordPress editor, or if you wish to create extra complicated galleries than the default Gallery block, then you have to a WordPress gallery plugin.

We advocate utilizing Envira Gallery as a result of it’s the greatest WordPress gallery plugin

For the sake of this tutorial, we might be utilizing the free model of Envira, however you could wish to get the Professional model to get highly effective options like albums, picture slideshows, and so on.

First, you’ll want to put in and activate the Envira Gallery plugin. In the event you’re undecided how, simply take a look at our step-by-step information on tips on how to set up a WordPress plugin.

Subsequent, you may go to Envira Gallery » Add New in your WordPress dashboard.

Add a new gallery in Envira Gallery

You’ll want to present your gallery a title. We’ve referred to as ours ‘Instance Gallery’. Subsequent, add the pictures you wish to use.

You may both drag and drop them into the add field, or you should utilize one of many ‘Choose Information’ buttons.

Give your new gallery a name

Right here’s how the pictures look as soon as they’ve been uploaded:

Images uploaded to Envira Gallery

You could wish to give your photographs a title and alt textual content right here. The title seems under your picture when the person brings their mouse cursor over it.

The title additionally seems under the picture within the lightbox popup mode, which we’ll check out in a second.

To edit the title and alt textual content, click on the Edit button on a picture within the gallery.

Click the Edit button to edit an image in your gallery

You may then change the title to your picture. It defaults to the picture’s filename.

You must also enter alt textual content, as that is useful to your WordPress website’s website positioning. In case your title describes the picture, then you may merely repeat it for the alt textual content.

Setting the title and the alt text for the image

When you’re finished, please ensure you click on the ‘Save Metadata’ button earlier than clicking the X to shut the window.

Click the Save Metadata button to save your changes

So as to add your gallery on the positioning, you’ll first must publish it. Go forward and click on the Publish button on the proper hand aspect of the display screen.

Click the Publish button to publish your gallery, so you can use it on your site

Now, edit a submit or web page, or create a brand new one. Contained in the content material editor, click on (+) so as to add a block to your submit, and choose the Envira Gallery block. You could find it within the Widespread Blocks part, or you should utilize the search bar.

Add the Envira Gallery block to your post or page

You’ll then must click on on the dropdown to pick your gallery.

Select your gallery from the Envira Gallery block

It’s best to see your gallery in place in your submit.

You may regulate the settings on the right-hand aspect of the display screen. As an illustration, you would possibly wish to change the column structure, or the scale of the margin between photographs.

The Envira Gallery shown in the post editor

We determined to set our gallery to all the time show in two columns. We additionally added a wider margin between the pictures.

The person can click on on a picture to see the full-sized model in a lightbox. They’ll scroll by way of the pictures utilizing the lightbox, too.

Viewing an image from the Envira gallery in a lightbox

If you wish to add extra photographs to your gallery, then you may return to it by visiting Envira Gallery » All Galleries in your WordPress dashboard. Merely click on on the title of your gallery to edit it.

Editing a gallery you've already created in Envira Gallery

Any modifications you make to your gallery will seem wherever you’ve positioned it in your posts, pages, or sidebars. You don’t want so as to add it to those once more.

Tip: In the event you’re utilizing the traditional editor as a substitute of the block editor, you may nonetheless use Envira Gallery.

You’ll see an ‘Add Gallery’ button above the traditional editor that you should utilize so as to add an current gallery to your submit.

Adding an Envira gallery in the classic editor

You can even create a brand new gallery by clicking the ‘Add Media’ button then ‘Create Gallery’.

Creating a new gallery using the Media Library in the Classic Editor

We hope this tutorial helped you learn to put photographs aspect by aspect in WordPress. You may additionally wish to undergo our information on tips on how to align photographs within the WordPress block editor, and our complete record of the will need to have WordPress plugins (professional decide).

In the event you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can even discover us on Twitter and Fb.