Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to make a WordPress gallery responsive on mobile

Updated 3 min read

A responsive WordPress gallery changes its layout to fit the screen. Modula galleries adapt on their own. These settings let you choose how many columns a gallery has on tablets and phones.

You can also set the screen width where a tablet or phone layout starts. Other values can differ on small screens too.

Note: Responsive is shown for Masonry, Uniform grid, Fit grid, Justified grid, Custom grid, Polaroid, Parallax and Slider. Creative, BnB, Showcase, Story, Video gallery and Freeform galleries adapt on their own. For Freeform, the tablet and phone layouts are built from the desktop layout.

Watch how to set the columns for tablets and phones and check them with the device buttons under the preview.

Set responsive columns for tablets and phones

  1. Go to Modula → Galleries and open your gallery.
  2. Click Layout in the left rail.
  3. Turn on Responsive.
  4. Open On phones and tablets.
  5. Next to Columns, click the tablet icon. Set the number of columns for tablets (2 by default).
  6. Click the phone icon. Set the number of columns for phones (1 by default). You can choose from 1 to 6.
  7. If needed, change Treat as a tablet under (1024 px by default) and Treat as a phone under (600 px by default). Screens narrower than these widths get the tablet or the phone layout.
Responsive switched on, with Columns for tablet, Treat as a tablet under 1024 px and Treat as a phone under 600 px

The columns you choose under Columns at the top of the section are the desktop columns.

Check the result in the preview

Use the desktop, tablet and phone buttons under the preview to see the gallery at that size.

Some settings have a value per device and show the same three icons. These settings switch to that device too. So you can change the phone Spacing, for example, while you look at the phone view.

The gallery editor with the preview switched to the phone view: one column, and the settings showing their phone values

Other settings for small screens

Columns are the main change, but these settings also matter on small screens:

  • Spacing and Gallery width in Layout: Click the tablet or phone icon next to them to set a separate value.
  • Minimum height of a Creative gallery: Has separate values for desktop, tablet and phone.
  • Slider: Find Visible at once and Advance by under On phones and tablets. They set how many slides show and how many move per click, on tablets and on phones.
  • Showcase: Simplify on phones shows one photo at a time on small screens.
  • Captions: The title and caption Size has a desktop and a mobile value. See captions and titles.
  • Filters: Collapse on phones and Dropdown on phones keep the filter bar small. See How to Use Filters.
  • Lightbox: Open lightbox on can limit the lightbox to desktop or to mobile. See the lightbox settings.
  • Motion: Animate on phones turns the motion effects off on phones.
Was this page helpful?
0 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.