15th Apr '25
/
0 comments

Synced thumbnail sliders in Bricks using BricksExtras

This tutorial provides the steps to set up post-specific synced/linked thumbnail sliders that show photos from a gallery-type custom field using BricksExtras plugin in a WordPress site powered by Bricks.

We will have the main slider at the top and the thumbnail slider at the bottom.

Step 1

Create a Gallery type field if using ACF Pro or an Image Advanced type field if using Meta Box.

Associate it with your post type.

Step 2

Edit your (CPT) posts and populate the field for each.

Step 3

Install BricksExtras.

Enable these elements: Pro Slider and Pro Slider Gallery.

Step 4

Create a single Bricks template for your post type and edit it.

Add a Section and inside its Container, Post Title and Post Content elements.

Add another Section and inside its Container, a Pro Slider element.

SLIDES / LAYOUT

No. of slides to show: 3 (you may want this to be an odd number like 3 or 5 so that the larger version of the image appears centered when a thumbnail is clicked in the bottom slider)

Gap between slides: 20

INTERACTION / BEHAVIOUR

Focus: center

NAV ARROWS

Icon size: 22

For both PREV ARROW and NEXT ARROW:

Top: auto

Bottom: -70

PAGINATION DOTS

Position:

Top: auto

Bottom: -30

GALLERY

Enable Gallery mode.

Add a Pro Slider Gallery element under the Pro Slider.

When you are done implementing this tutorial, the structure should look like this:

Click the dynamic data bolt icon and select your gallery field.

Select your desired image size.

Link to: Lightbox

If you would like to show thumbnails at the bottom in the lightbox, tick “Group images into lightbox” and “Thumbnail navigation”.

If the thumbnails are not centered on the front end or if they seem to move for each click (to make the active thumb centered), add this CSS in template’s Page settings → Custom code:

.pswp__thumbnail-nav-wrapper {
  left: 50% !important;
  transform: translate(-50%, 0);
  
  .pswp__thumbnail-nav {
    transform: none !important;
  }
}

Step 5

Let’s set up the thumbnail slider.

Duplicate the Pro Slider.

In the STYLE tab under LAYOUT, set left and right margins to auto. Also, set width to auto.

SLIDES / LAYOUT

Gap between slides: 10

Enable ‘Auto slide width’.

NAV ARROWS

Set to None.

PAGINATION DOTS

Disable.

SYNC SLIDERS

Enable sync.

Copy the CSS ID of the main slider and paste.

Ex.:

GALLERY

Enable Gallery mode.

Step 6

Select the Pro Slider Gallery inside the thumbnail slider.

You may want to select a smaller image size.

If you’d like to register a custom image size, add the following in child theme‘s functions.php (w/o the opening PHP tag) or a code snippets plugin:

<?php

add_image_size( 'small-thumbnail', 75, 75, true );

and regenerate thumbnails.

and done! Check on the frontend.

Here is a JSON export of the Section from our dev site for your reference.

Get access to all 633 Bricks code tutorials with BricksLabs Pro

Leave the first comment

 

Related Tutorials..

Dynamic Post Galleries in Lightboxes using BricksExtras

Dynamic Post Galleries in Lightboxes using BricksExtras

How to show post-specific galleries as sliders using BricksExtras when a “Open Gallery” link is clicked in post cards in a posts grid.
Categories:
How to sync two nestable sliders in Bricks

How to sync two nestable sliders in Bricks

In this tutorial, we'll learn how to sync two nestable sliders in Bricks: one will be the main slider and the other one will be…
Categories:
Pro
Post-specific ACF Repeater Galleries as Sliders in Bricks

Post-specific ACF Repeater Galleries as Sliders in Bricks

How to output ACF Repeater field rows with the images of the Gallery-type sub field as a slider.
Populating WS Form Field in a Modal with Button Data Attribute in Bricks

Populating WS Form Field in a Modal with Button Data Attribute in Bricks

How a WS Form field inside of a Modal can be pre-filled by clicking the button to open it.
Categories:
Pro
How to Move an Element into Another on Smaller Viewports in Bricks

How to Move an Element into Another on Smaller Viewports in Bricks

This Pro tutorial provides the steps to move a Block containing a Heading and WP Grid Builder's Facet into BricksExtras' OffCanvas element for viewports 991px…
How to Create a Right Overflow Effect on Sliders in Bricks

How to Create a Right Overflow Effect on Sliders in Bricks

In this tutorial, we'll learn how to recreate a nice overflow effect on the right of our sliders in Bricks. Introduction Recently, I've been asked…
Categories: