In a previous tutorial we showed you how to add an overlay with a centered icon to the Owl Carousel. In this tutorial, we’ll do something similar. Instead of an icon overlay appearing when the owl image is hovered, this overlay will contain title and short description text. This is how it will look when you’re finished with the tutorial:

The first thing we need to do is make sure we are using the DP Owl Image Carousel module from the Owl Carousel Pro plugin. Add this module to the Page Builder on any page or post. Once added, we’re going to click on the Add New Image link at the top of the module to add our first carousel item. This will display a new window with options for adding images and content to the carousel.

We need to scroll down to the Image Content text editor. Make sure you change the editor from Visual to Text mode by clicking on the Text tab in the upper-right corner of the editor. Now copy and paste the following HTML:

The HTML above contains everything needed to create the image, link, overlay, and overlay title and description. Feel free to leave out the link if you don’t want the user to go to a page when they click on the image. Modify the image source URL and overlay text and click the Save button.

You should now have a New Image block at the top of the DP Owl Image Carousel module. Click the copy icon to duplicate this image for as many images as you want to display in the carousel. Now go in and edit each image, changing the image source URL and text. Click the Save & Exit button at the bottom of the module window and publish or update the page.

Now we just need to add the following CSS to our child theme’s style.css file or the Custom CSS box at the bottom of the Divi Options page:

The CSS above will always vertically align the overlay text in the middle of the image. Depending on the size of your image, font size, amount of text, etc., you may have to adjust the CSS for the text to fit properly inside the overlay. I’ve also added Media Queries for the tablet and phone breakpoints so you can fine tune how the text is displayed on those devices. You can also make any other changes to the CSS to customize the text however you like.

As you can see from the results, the Owl Carousel Pro plugin has nearly endless possibilities. You are not limited to adding images using the Image URL option. You can add the image, or any HTML, to the Image Content text editor to create custom carousel items.

Share This