How to Display WordPress Photos in Columns and Rows

How to Display WordPress Photos in Columns and Rows


Do you want to display WordPress photos in columns and rows?

By default, WordPress adds images in a vertical column on top of each other. However, if you are adding multiple photos to a blog post, then this doesn’t look very clean and requires a lot of scrolling for your users.

In this article, we will show you how to easily display WordPress photos in columns and rows.

How to display WordPress photos in columns and rows

Why You Need WordPress Photos in Columns and Rows

By default, when you add multiple images to a WordPress blog post, they would appear right next to each other or on top of each other.

This doesn’t look very good, and your users must scroll a lot to view multiple images and photos.

You can easily solve this problem by displaying photos in rows and columns using a grid-based layout. This way, images will appear in a compact layout and improve user experience on your website.

If you have a photography website, then you can show your portfolio in a more engaging way. Or you can show more product images on an online store by displaying them in rows and columns.

Having said that, let’s take a look at how to display WordPress photos in columns and rows manually or use a WordPress plugin. Simply click the links below to jump ahead to your preferred section.

1. Display Photos in Columns and Rows without Plugins

This method does not require installing a plugin on your WordPress website. If you don’t add multiple photos too often, then this would work just fine for you.

You can manually add images to a column block or use the default gallery block in WordPress.

Adding Images to a Column Block

First, you need to create a new post or edit an existing one where you want to display your photos. Once you’re in the content editor screen, click the ‘+’ button to add a column block.

Add a column block

Next, you can choose the number of columns you’d like and its layout.

For instance, you can choose a 50/50 ratio, 33/66 ratio, 25/50/25 ratio, and more.

Choose column ratio and layout

After that, you can add an image block to each column.

Simply click the ‘+’ button and select the ‘Image’ block.

Add image block to column

Next, you will need to add an image to the block.

You can click the ‘Upload’ button to add an image from your computer or select the ‘Media Library’ option to use an existing picture.

Upload image to column block

Once the media library opens, simply select your preferred image and click the ‘Select’ button.

One of the image optimization best practices is to add an alt-text to your image. This allows search engine bots to understand your picture and show it in image search results.

Select an image from media library

You should now see your image in one of the column blocks.

Now, you can do the same for other blocks in the column and add more images.

Add more images to column block

Adding Images in a Gallery Block

WordPress also offers a default gallery block that you can use to display images in columns and rows.

To start, click the ‘+’ button and add a Gallery block in the content editor.

Add a gallery block in content editor

Next, you’ll need to upload images or choose from the media library.

For this tutorial, we’ll choose the ‘Media Library option.

Upload or select images from media library

From, simply select the images you’d like to add to your gallery and display them in rows and columns.

Once you choose the images, click the ‘Create a new gallery’ button.

Click the create a new gallery button

Next, WordPress will ask you to enter captions for each image and rearrange the order of the pictures.

After doing that, simply click the ‘Insert gallery’ button.

Insert your gallery

You should now see your images in the gallery block.

You can adjust the number of rows by clicking the slider in the Settings panel on the right.

Adjust column settings in the gallery

Once you’re done, simply publish your post to view images in columns and rows.

Simply visit your site to see them in action.

Images in columns manually

This method would work for most beginners. However, if you run a photography blog or often share photos on your website, then this method lacks several important features.

For example, the appearance of photos relies on your WordPress theme and you are limited to that one particular layout and style.

Your images will not open in a lightbox popup and users will have to load them as a new page and then hit the back button to return to the original page.

For a more professional and beautiful user experience, you should try the plugin method.

2. Display Photos in Columns and Rows Using a Plugin

The best plugin to add photos in columns and rows is Envira Gallery. It is the most popular WordPress gallery plugin that is super easy to use and offers lots of features.

First, you must install and activate the Envira Gallery plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Envira Gallery » Settings page to enter your license key. You can get this key from your account on the Envira Gallery website.

Add the Envira Gallery license key

Now, you are ready to create beautiful image galleries.

Simply head over to Envira Gallery » Add New from the WordPress dashboard to create your first gallery.

Add new gallery

First, you’ll need to enter a name for your gallery at the top. From here, you can select and upload files from your computer, or you can select from the WordPress media library.

After uploading your photos, you’ll see them appear in the gallery settings box below.

View images in your gallery

Next, you need to click on the ‘Configuration’ tab to customize how you want to display your photos.

Envira Gallery lets you choose different gallery layouts. To show images in rows and columns, you can select the grid, mason, and square layouts.

Choose gallery layout and number of columns

After selecting the layout, you can click the ‘Number of Gallery Columns’ dropdown menu and choose how many columns you’d like to show.

If you scroll down, then you’ll see more options to customize your gallery. For instance, there are settings to edit the dimensions and size of your gallery.

Publish your image gallery

After that, you can click the ‘Publish’ button to make your photo gallery ready to be added to your WordPress site.

Now, you need to edit a post or create a new one. Once you’re in the content editor, simply click the ‘+’ button to add the ‘Envira Gallery’ block.

Add the Envira Gallery block

From here, you can click the dropdown menu and select the gallery you created earlier.

You can now save your post and preview it to see your photos in columns and rows in a beautiful mobile-responsive photo gallery.

Preview of gallery

Now when your users click on a photo thumbnail it will open up in a beautiful popup. They will also be able to browse images without leaving the page.

Bonus: Create a Custom Theme with Image Columns & Rows

You can also create custom WordPress themes that have a placeholder for adding images in columns and rows.

The best way to create a custom theme is by using a SeedProd. It is the best drag-and-drop website builder that offers prebuilt themes and lots of customization options.

You can add a column block to your landing page designs using SeedProd and add images to rows and columns. SeedProd even comes with a built-in Gallery block that you can use for this.

Add the Column Block in SeedProd

To learn more, please see our guide on how to create a custom WordPress theme with no code.

We hope this article helped you learn how to display WordPress photos in columns and rows. You may also want to see our guide on how to fix common image issues in WordPress and the best design software for small businesses.

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.


Source link

Leave a Comment

Your email address will not be published. Required fields are marked *