This article was originally published on this site


Divi’s slider module is packed with design options that make it easy to think outside the box and create stunning slider designs. So today, we are going to turn some things around (literally). In the post that follows, we are going to add vertical slider elements to Divi’s slider module. Having a slider with vertical elements (like title text and slide controls) allow visitors to see more slide content and background images in narrower columns (especially on mobile). And the vertical elements add a refreshing twist on the overall design.To do this, we’ll be using Divi’s transform rotate option to rotate the entire slider and then counter rotate other elements within each slide as needed to create a modern vertical slider design. We’ll start by going over the basic technique. Then we will create a completely unique header design with this vertical slider.
Let’s dive in!
Sneak Peek
Divi vertical slider elements
Divi vertical slider elements
Divi vertical slider elements
Download the Divi Vertical Slider Elements 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.

Download the Files

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

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:

  1. The Divi Theme installed and active
  2. A new page created to build from scratch on the front end (visual builder)
  3. Two images that have been rotated 90 degrees counterclockwise. This can easily be done using the built-in options of your OS or through any simple photo editing application. You can also rotate an image directly in WordPress by editing the media element.Divi vertical slider elements

After that, you ready to create your masterpiece in Divi.
The Basic Idea
The basic idea behind adding vertical slider elements is to use Divi’s transform options to rotate the slider module 90 degrees (clockwise or counterclockwise) so that it displays vertically on the page. For the slider (or slide) background image(s), you will want to rotate the image beforehand (or using the WordPress Image editor) so that the image will display upright whenever you rotate the slider. This will display the slider controls, arrows, and text vertically as you would expect. The tricky part comes with customizing the height and width of the slider since things are literally turned around. This slider design works best in a layout with two or more columns.
Here is a quick example of how to do this.
In a regular section with a two column row, add a slider module to the left column.
Then add a couple of slides each with a Title, a sentence of body content, and a background image that has been previously rotated counter clockwise 90 degrees.
Divi vertical slider elements
Then rotate the slider module by 90 degrees along the z-axis using Divi’s transform options.
Divi vertical slider elements
Then add spacing (bottom padding) to the slider to create additional width and align the text to the right of each slide.
Divi vertical slider elements
Here is the result.
Divi vertical slider elements
As you can see, the concept is simple, but these vertical slider elements can really come in handy for creating unique designs.
Below, we will take a crack at creating one of these unique slider designs together.
Adding Vertical Slider Elements to Divi’s Slider Module for a Unique Header Design
Creating the Section and Row
Section Background
Start by creating a regular section with a two column row.
Divi vertical slider elements
Before adding a module to the row, first update the section with the following background color:
Background Color: #24272a
Divi vertical slider elements
Row Settings
Then we need to give our row a custom gutter width of 1 and then set the width using the vw length unit. Using the vw length unit is important for making our vertical slider responsive later on.
Open the row settings and update the following:
Gutter width: 1Width: 80vw (desktop and tablet), 95vw (phone)Max Width: 80vw (desktop and tablet), 95vw (phone)
Then we will add a box shadow for design purposes.
Box Shadow: see screenshotBox Shadow Horizontal Position: -10pxBox Shadow Vertical Position: 0pxShadow Color: rgba(255,255,255,0.03)
Divi vertical slider elements
Add Heading Content Using a Text Module
We will eventually add the slider in column 2, but for now let’s add the header title with some additional text in column 1. To do this we will add two text module in column 1.
Add the Text Module for the Title
To add our header title, add a text module to column 1.
Divi vertical slider elements
Update the body content with the following h2 heading:

<h2>My Work</h2>

Divi vertical slider elements
Then update the following:
Heading 2 Font: KarlaHeading 2 Text Color: #ffffffHeading 2 Text Size: 5vw (desktop), 60px (tablet), 50px (phone)Padding: 15% top, 20% bottom, 5% left, 5% right
Divi vertical slider elements
Box Shadow: see screenshotBox Shadow Horizontal Position: 60pxBox Shadow Vertical Position: 0pxShadow Color: #9a2508
Divi vertical slider elements
Add Text Module for Body Content
Next, add a new text module under the first text module in column 1. We can leave the default content for now.
Then update the following:
Text Text Color: #ccccccWidth: 70%Module Alignment: rightMargin: -5% topPadding: 5% bottom, 10% left, 5% right
Divi vertical slider elements
Box Shadow: see screenshotBox Shadow Horizontal Position: 0pxBox Shadow Vertical Position: 10pxShadow Color: rgba(255,255,255,0.03)
Divi vertical slider elements
Creating the Vertical Slider
Now we are ready to create the slider with the vertical slider elements.
To do this, add a Slider Module in column 2.
Divi vertical slider elements
Open the slide settings of the first of the two default slides.
Divi vertical slider elements
Cut down the default body text to include a single line of text. Then add a background image that has been previously rotated counterclockwise 90 degrees.
Divi vertical slider elements
Then do the same for the second default slide giving it a different background image.
Divi vertical slider elements
Rotate the Slider
Next, rotate the slider using the transform rotate option:
Transform Rotate z-axis: 90deg
Divi vertical slider elements
Slider Height
We don’t need to worry about the slider width since it will automatically span 100% of the column. The column is 50% of 80vw (the row width) so basically the width will be 40vw by default. Now we need to give the slider a matching height of 40vw on desktop and then adjust the height to 80vw on tablet and 95vw on phone.
Update the following:
Height: 40vw (desktop), 80vw (tablet), 95vw (phone)
Divi vertical slider elements
Then adjust the padding to align the text to the right of the vertical slider.
Padding (desktop): 0px top, 21vw bottom, 0px left, 0px rightPadding (tablet): 42vw bottomPadding (phone): 50vw bottom
Divi vertical slider elements
Update Text Settings
Adjust the title and body text as follows:
Text Alignment: leftTitle Font: KarlaTitle Text Size: 32pxTitle Line Height: 1.3emBody Letter Spacing: 3pxBody Line Height: 1.8em
Divi vertical slider elements
Styling the Button
To style and position the button, update the following:
Button Text Size: 16pxButton Background Color: #9a2508Button Border Width: 0pxButton Letter Spacing: 2pxButton Font Weight: semi boldButton Icon: plus sign (see screenshot)Button Alignment: rightButton Margin: 10% top, 10% bottom
Divi vertical slider elements
Background Gradient
To create a background for our vertical slider title text, we can add a background gradient to the slider as follows:
Background Gradient Left Color: #9a2508Background Gradient Right Color: rgba(0,0,0,0)Start Position: 12%End Position: 0%Place Gradient Above Background Image: YES
Note: If you want, you can adjust the opacity of the background gradient right color to create an overlay for your slide images.
Divi vertical slider elements
Rotating the Button and Slider Arrows with Custom CSS
Since our button is still vertical, we will need to rotate it back to its previous position with a snippet of CSS. Add the following CSS to the Slide Button:

transform: rotate(-90deg);

Divi vertical slider elements
For the slider arrows, you can add the same snippet of css so that they point to the right and left instead of up and down. And while we are there, we can increase the size of the arrows as well. Add the following CSS to the

transform: rotate(-90deg);
font-size: 80px;

Divi vertical slider elements
That’s it!
Let’s check out the final result.
Final Result
Divi vertical slider elements
And here it is on tablet and phone.
Divi vertical slider elements
Divi vertical slider elements
Feel free to explore new designs by tweaking the vertical elements. Here is an example of the same design with the button positioned to the left and a text overlay.
divi vertical slider elements
Final Thoughts
Rotating Divi’s slider module is a quick and effective way to add vertical design elements to your slider. Really, the only challenging part is getting the size and spacing to be nice and responsive. But thankfully, Divi has enough built-in options that make it easy to tweak the design to look great on all devices.
This vertical slider design will also work great in other areas of your site besides a header. I can see this being used for showcasing featured products or testimonials in more narrow column layouts.
Hopefully this will give you some inspiration for your next project.
I look forward to hearing from you in the comments.
Cheers!