How to Create a Custom Photo Gallery Slider in Divi

Posted on June 9, 2019 by in Divi Resources | 13 comments

How to Create a Custom Photo Gallery Slider in Divi

We all know sliders are great for enticing users with featured services, products or pages in one convenient location above the fold. Some sites (I’m thinking photographers) need to feature one or more of their photo galleries on the homepage. Using a slider for this may be a nice option. However you may have not considered featuring your photo gallery in a slider quite like this.

In this tutorial, I’m going to show you an easy way to embed Divi image galleries into your slides to create a completely custom photo gallery slider in Divi. The trick is to create a WordPress image gallery in the content area of your slider. Then you just need to make sure and select the option to use the Divi Gallery instead of the default WordPress Gallery style. Its super easy and fun to implement.

Let’s get started.

Sneak Peek

Here is a sneak peak of the photo gallery slider we will build in this tutorial.

 divi photo gallery slider

 divi photo gallery slider

Download the Custom Photo Gallery Slider Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

To import the layout to your page, simply extract the zip file and drag the json file into the Divi Builder.

Let’s get to the tutorial shall we?

What You Need to Get Started

To get started, you will need to have the following setup:

  1. The Divi Theme installed and active
  2. A new page created to build from scratch on the front end (visual builder)
  3. About 6-8 images to be used for the slider image and photo gallery

After that, you will have a blank canvas to start building some hover tabs in Divi.

Enable the Divi Gallery Option in Divi Theme Options

Divi allows you to replace the default WordPress Gallery display with a Divi Gallery display. So whenever you create a WordPress gallery and embed it inside a module, the gallery be displayed like a gallery using the Divi Gallery Module. This basically allows you to add Divi image galleries to any module in the Divi Builder. In our case, we will be adding a Divi Gallery to the slider module.

To change the setting, navigate to Divi > Theme Options. Then under the General Tab, click to enable the Divi Gallery option.

 divi photo gallery slider

That’s it! Now the default WordPress Gallery shortcode will display a Divi-styled photo gallery.

Creating the Custom Photo Gallery Slider in Divi

The Section and Row

To kick things off, go ahead and create a regular section with a one column row.

Then update the row settings as follows:

  • Width: 100% (so the slider will be fullwidth on mobile)
  • Padding: 0px top, 0px bottom
  • Rounded Corners: 20px

 divi photo gallery slider

Building the Slider Content

Next, add a slider module to the row.

 divi photo gallery slider

Open the slider settings and delete one of the slides that was added by default. Then click the gear icon on the slide to open the slide settings for that slide.

 divi photo gallery slider

Then update the slide content with the following:

  • Title: Our Gallery
  • Button: View all
  • Body: This is our gallery. Check it out.

 divi photo gallery slider

Under the body content area, click the Add Media button.

 divi photo gallery slider

In the Media Library popup, select the Create Gallery tab on the top left. Then select 6 images you want to use for the gallery and click the “Create a New Gallery” button on the bottom right.

 divi photo gallery slider

This will bring you to the edit category page inside the popup. Ignore the gallery settings at the top right because the Divi Gallery styles will override these WordPress Gallery settings.

Then click the “Insert Gallery” button.

 divi photo gallery slider

This places a gallery shortcode within the slider module content. If you want the gallery to be displayed after the current body text, make sure to place the shortcode after the content.

 divi photo gallery slider

Now you have an embedded Divi-styled gallery displayed in the content area of your slider module. Pretty cool stuff!

Let’s continue updating our slide content by adding a main slide image.

 divi photo gallery slider

Now that we have our slider content ready to go, save your settings for slide 1.

Slider Settings

Make sure you save the settings for the individual slide. Then update the following design Settings for the main slider. This will make sure the design updates will affect all individual slides that you will add.

Image Border and Box Shadow

  • Image Rounded Corners: 20px
  • Image Border Width: 40px (desktop), 0px (tablet)
  • Image Border color: rgba(0,0,0,0)

 divi photo gallery slider

  • Image Box Shadow: see screenshot
  • Box Shadow Horizontal Position: -170px
  • Box Shadow Vertical Position: -220px
  • Box Shadow Spread Strength: -60px
  • Shadow Color: rgba(255,255,255,0.2)

 divi photo gallery slider

Title and Body Text

  • Title Font: Karla
  • Title Text Alignment: right
  • Title text Size: 48px
  • Title Line Height: 1.3em
  • Body Text Size: 16px
  • Body Letter Spacing: 2px
  • Body Line Height: 2em

 divi photo gallery slider

Button Styles

  • Button Text Size: 16px
  • Button Background Color: #333333
  • Button Border Width: 0px
  • Button Border Radius: 20px
  • Button Letter Spacing: 2px
  • Button Font: Karla
  • Button font Weight: Bold
  • Button Icon: see screenshot
  • Button Alignment: right
  • Button Margin: -5em right
  • Button Padding (desktop): 3em left, 5em right
  • Button Padding (phone): 2em left, 6em right

 divi photo gallery slider

  • Button Box Shadow: see screenshot
  • Box Shadow Vertical Position: 0px
  • Box Shadow Spread Strength: 20px (desktop), 10px (phone)
  • Shadow Color: #ffffff

 divi photo gallery slider

Slider Padding

  • Padding: 10% top, 10% bottom

 divi photo gallery slider

Adding a Background Gradient to Slide 1

Now that we have the slider styling in place, we can add a custom background gradient to our individual slide. Open the slide settings for slide 1 and update the following:

  • Background Gradient Left Color: #6d0066
  • Background Gradient Right Color: #000000
  • Gradient Type: Radial
  • Radial Direction: Top Left

 divi photo gallery slider

Creating Slide 2

To create the second slide, we can just duplicate slide 1 using the duplicate icon. Then open the duplicated slide (slide 2) settings.

 divi photo gallery slider

At this point you can update the content of the new slide as needed. For example, you could add a new slide image and generate another gallery embed shortcode to add a new photo gallery to the slide.

Then update the background gradient as follows:

  • Background Gradient Left Color: #0c71c3

 divi photo gallery slider

Final Result

Here is the final result.

 divi photo gallery slider

And here is what the slider looks like on tablet and phone.

 divi photo gallery slider

 divi photo gallery slider

And here is the slider if you take out the slide images so that only the slide content and gallery shows.

 divi photo gallery slider

Final Thoughts

The ability to embed a divi gallery inside Divi’s Slider Module opens up the opportunity to create some great looking photo gallery sliders with little effort. Hopefully, this tutorial will give you some inspiration for creating some beautiful photo gallery sliders.

For more info on this divi gallery embed technique (including tips on styling the embed divi gallery), check out the post on how to embed Divi galleries into toggles.

I look forward to hearing from you in the comments.

Cheers!

Premade Layouts

Check Out These Related Posts

Divi Child Themes for Travel Websites

Divi Child Themes for Travel Websites

Posted on June 22, 2019 by in Divi Resources

Divi is an excellent theme to build travel websites. Whether you’re building a website for travel agencies with booking built in or creating a personal blog about your travels, you can build it with Divi. Of course, you can build from scratch or use a layout or child theme to build any type of...

View Full Post

13 Comments

  1. I have bought the licence. Where could I find this Gallery options within the DIVI BUILDER, please? Thank you Zbynek

    • Zbynek,
      Great! See the beginning of this article under the section titled “Enable the Divi Gallery Option in Divi Theme Options”. Once that option is enabled, you can add a regular WordPress gallery to the content of your slide in the slider module. Hope that answers your question.

  2. It is exactly what I needed for a page I’m working in.
    Thank you!

  3. I cannot get the layout to import, says it is not to be imported in ‘this context’

    • Barbara,
      Don’t add it to the Divi Library. Just drag the file into a new page with the Divi Builder active. That should do it.

  4. Nice tutorial, but where i can change the default Divi Gallery Settings???

  5. Timely, I’m in need of a frontpage slider update and I was a little intimidated by getting into it. I’ve got another blog post suggestion for you. Would you consider making a post about Structured Data Markup? I not a programmer, but by using Google help and the tester tool I was able to get a single event on my website into this format – took me an hour. I’m wondering if there is a plugin or easier way to do this?

  6. hello,
    Where do I have to import the layout to my page, after extracting the zip file and where do I have to drag the json file into the Divi Builder.

  7. Can this be done in the Extra theme?

Leave A Reply

Join To Download Today

Pin It on Pinterest