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 create a WordPress image slider with Modula

Updated 4 min read

Slider is the Modula gallery type for a WordPress image slider. It shows your images one at a time, or a few side by side, with arrows, page dots, a thumbnail strip and autoplay. You can also use it as the layout of an album.

Note: Slider is part of Modula Pro, included from the Trio plan. Turn it on in Modula → Extensions (see how to install extensions).

Watch how to set Type to Slider, then change the slides, navigation, autoplay, thumbnails and captions.

Make a WordPress image slider

  1. Go to Modula → Galleries and open the gallery.
  2. Click Layout.
  3. Set Type to Slider. The preview turns into a slider, and the slider settings appear under Type.

    The gallery editor with Type set to Slider, autoplay on and the thumbnail strip under the slide
  4. Change the settings you want. The next section explains each one. The editor saves your changes as you go.

To show the slider on your site, see how to add a gallery to a post or page.

Slider settings you can change

The settings come in four groups. Start with the first group, because it decides how many slides show and how visitors move between them.

Slides and navigation

  • Visible at once: How many slides show side by side, from 1 to 12.
  • Show arrows: Adds previous and next arrows. Turn on Arrows over the image to place them on the slide instead of beside it.
  • Show page dots: Adds a row of dots under the slides, one dot per page.
  • Autoplay: The slides change by themselves. Time between slides sets how long each one stays, from 1,000 to 15,000 ms (1,000 milliseconds is one second). Pause when hovering stops it while the pointer is over the slider.
  • Show thumbnails: Adds a strip of small images under the slider. Click one to jump to it. Thumbnail file size picks the image size for them. Visible thumbnails sets how many show at once, and Auto shows all. Space between thumbnails and Border color (the border of the current one) change how they look.

CSS is the code that styles a web page. To change the color of the arrows and dots with CSS, see how to change the slider dots and arrow colors.

Size and motion

The next group changes the size of the slider and the way the slides move.

Slider settings from Gallery width to Drag to move in the gallery editor
  • Gallery width: The width of the slider. It can be different on desktop, tablet and phone. At 100% the slider fills the container it sits in, so on a full-width page it is full width too.
  • Image file size: Which size of your images the slides load. Pick Thumbnail, Medium, Large, Full or Custom dimensions. With Custom dimensions you enter the Width and height and choose whether to Crop images to fit.
  • Height follows slide: The slider grows or shrinks to the height of the current image.
  • Advance by: How many slides one click on an arrow moves.
  • Peek side slides: Shows a bit of the previous and next slide on the sides. Side peek size sets how much.
  • Fade between slides: The slides fade into each other instead of sliding.
  • Loop endlessly: After the last slide, the slider starts over. When this is off, the slider stops at the last slide.
  • How fast slides change: The length of the change animation, in milliseconds.
  • Right-to-left: For right-to-left sites. The slider moves in that direction.
  • Start on slide: The image the slider opens with. Enter its position in the gallery, for example 3 for the third image. Both 0 and 1 start with the first image.
  • Drag to move: Visitors can drag or swipe the slides.

Phones and tablets

You can show a different number of slides on smaller screens. Turn on Responsive and open On phones and tablets.

The first Visible at once and Advance by pair is for tablets. The second pair is for phones. Treat as a tablet under (1024 px) and Treat as a phone under (600 px) set the screen width where each one starts.

Titles and captions

Each slide can also show the title and caption of its image. To do this, open Captions and turn on Show title and caption.

Caption placement puts them Above the slide, at the Top of the slide, Below the slide or at the Bottom of the slide.

The Captions card of a slider with Show title and caption on and Caption placement set to Below the slide

Show an album as a slider

Once Slider is turned on, albums can use it too. Go to Modula → Galleries, click the Albums tab and open the album. In Layout, set Type to Slider. You can read more about albums in Modula Albums.

For a step-by-step walkthrough with examples, see how to add a gallery slider in WordPress on our blog.

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.