This post is part 4 of 5 in our mini series titled 5 Interesting Ways to Style Diviβs Slider Module. Stay tuned for all five unique examples of the slider module and tutorials on how to achieve them!
In todayβs slider tutorial instead of changing out the animation name on the slide description Iβm actually going to be removing it altogether, and Iβll explain why below. Iβm also bringing in a few gradients, βcause who doesnβt love a gradient? Aaaand Iβll show you how to have three buttons instead of two (or as many as you want).
Letβs get started! π
- 1 Todayβs Before & After: The Divi Slider Module
- 2 How to Style the Divi Slider with a Static Description by Removing the Description Transition
- 3 The Concept & Inspiration
- 4 Preparing the Design Elements
- 5 Implementing the Design with Divi
- 6 The Section Settings
- 7 The Row Module Settings
- 8 The Slider Module Settings
- 9 The Slide Settings
- 10 Finishing Up with the CSS
- 11 Tomorrow: How to Create a Navigation Mosaic with the Divi Slider Module
Todayβs Before & After: The Divi Slider Module
Below is an example of the Divi Slider Module with an image and dummy text added, but no settings changed. This represents our starting point.

What weβll end up with is a an almost fullwidth, sleek hero slider with a gradient background, giving the appearance of a thick gradient border.

How to Style the Divi Slider with a Static Description by Removing the Description Transition
Subscribe To Our Youtube Channel
The Concept & Inspiration
Itβs a pretty popular opinion that sliders in the header (aka hero sliders) are bad for conversions. That theyβre too distracting and people arenβt going to click through all of them anyway.
Of course everyone needs to do whatβs best for their siteβor their clientsββbut even if that is true I say itβs still not reason enough to ditch the beloved hero slider entirely.
The visual movement above the fold is something thatβs almost expected nowadays in web design, so in this step-by-step tutorial the slider is keeping the visual movement but ditching the rotating words. A win-win I say!
Preparing the Design Elements
Iβve gathered my background images ahead of time. Itβs best to optimize your images beforehand, and also size them down close to the size theyβll actually be appearing on the frontend when possible.
In this example my images are 1920px wide by 1280px high. This is a great size for full-width images.
Something else you can do is get some assets together so you can have a point of reference during the design process, sort of similar to a mood board if youβre familiar with those. It can be as simple or complex as you want it to be. Here weβre just collecting some gradients and images.
Implementing the Design with Divi
In the sections below weβll work our way in from Section settings to Module settings, to Slide settings, and finally a quick snippet of CSS. Here we go!
The Section Settings
Weβre going to start with a standard 1-column section and add a slider module to it.
Next weβll change some settings in the section module itself.
For the Section General Settings Iβm setting a background color of #ef4136 and putting a top and bottom padding of 0. The background color is what you see quickly flash between slide changes and Iβve chosen a color thatβs used in my gradient. I think most people tend to forget this little detail and leave the default white as the background, but itβs a nice little touch to have it match.


In the Section Custom CSS Settings Iβm adding some CSS and Iβm assigning an ID to the section. Iβm using the name βgradient-sliderβ but you can use whatever youβd like.

Main Element β Weβre using a diagonal linear gradient and as you probably guessed the first hex code applies to the color being used in the upper left corner, the second hex code applies to the lower right. All the variations are needed for different browsers.
background: #EF4136; background: -webkit-linear-gradient(left top, #EF4136 , #F18F01); background: -o-linear-gradient(bottom right, #EF4136, #F18F01); background: -moz-linear-gradient(bottom right, #EF4136, #F18F01); background: linear-gradient(to bottom right, #EF4136 , #F18F01);
The Row Module Settings
Now letβs set the settings in the rowβs general settings. We will not be changing anything in the advanced design or custom CSS tabs.

The Slider Module Settings
For the Slider Module General Settings set the following:
- hide arrows
- show controls: no
- automatic animation: on
- animation speed set to 7000
- continue automatic slide on hover: on
In the Slider Module Advanced Design Settings as the header font Iβm using Arvo and Iβm changing the body font settings but you can set what youβd like.

For the Slider Module Custom CSS Settings add the following code:
Slide Description β Here Iβm removing the animation/transition effect that is normally seen applied to the description text. This essentially is what will make it a βstaticβ slider in the sense that the text will never move. Of course for this to really work every slide has to have the exact same title and content.
animation-name: none;
The Slide Settings
For the slide General Settings see below, the opaque black you see is rgba(0,0,0,0.5).

Nothing in the advanced design or custom CSS tabs are changed. Youβll notice at the end weβre adding our description text along with some HTML code in text mode, not visual. This code that weβre adding is the code for the three buttons, notice how in this last screenshot the button field was left blank? Because weβre taking away the ability to have multiple bodies of text show up in order to make it seem βstaticβ we need to compensate for the loss of call-to-action (or CTA) opportunities, so voilΓ ! More buttons!
Something to note is that Iβm using Elegant Themesβ ready-made class βet_pb_buttonβ. The reason Iβm doing this is in case you want these buttons to apply the settings youβve already set in customizer > buttons you donβt need to add the CSS that weβll be adding below. For the purposes of this tutorial though, weβll be giving these buttons their own styling that will only apply to them.
You can start adding your slides and be sure to copy/paste the HTML code as itβs shown in the photo, replacing with your URL links and button text of course. You should also add titles or any other attributes at this time. Remember for this to really work every slide has to have the exact same title and content. I suggest making the first slide and then duplicating, only changing the background image for each slide.
<a class="et_pb_button" href="#">Services</a><a class="et_pb_button" href="#">Portfolio</a><a class="et_pb_button" href="#">Inquire</a>
Finishing Up with the CSS
Remember how we assigned the ID βgradient-sliderβ to the section in the very beginning? Hereβs where weβre going to use that ID. This will ensure these styles only apply to these slider buttons. You can change the hex codes to what youβd like, the same style of diagonal linear gradient is being used here as we used in the section background.
#gradient-slider .et_pb_button {
text-transform: uppercase;
font-size: 16px;
display: inline-block;
margin: 5px;
border-color: #02998A;
background: #2F9C95;
background: -webkit-linear-gradient(left top, #2F9C95, #40C9A2);
background: -o-linear-gradient(bottom right, #2F9C95, #40C9A2);
background: -moz-linear-gradient(bottom right, #2F9C95, #40C9A2);
background: linear-gradient(to bottom right, #2F9C95, #40C9A2);
}
#gradient-slider .et_pb_button:hover {
border-color: #15BF9F;
}
And thatβs it! You should have a pretty cool hero slider with no moving text and some extra buttons that wonβt have to fight each other for slide order attention. Hope you can make some great use of this tutorial!

Things are going to get interesting tomorrow! Instead of offering up a design concept with just one Divi slider module, Iβll be showing you how to combine several together to create a unique form of site navigation. See you then!
Be sure to subscribe to our email newsletter and YouTube channel so that you never miss a big announcement, useful tip, or Divi freebie!



Thank you for the great slider. The only question – is there any possibility to add preview thumbnails instead of dots?
Hi there:
This is great and I have used the idea in one my websites (link given below). However, the image and the texts in the slider do not get auto-adjusted in smart phones (mobile). To maintain Divi theme being fully responsive, is there any help for make the slider module responsive in mobile device?
Thank you indeed.
Wonderful develop your tailor made slider, Leslie! Enjoy your creative imagination.
Thanks for the tutorial Leslie. I’ve gone through a few of yours from your site and now I’ve got your site bookmarked in multiple places on my pc, gotta organize these.
I now started a site to organize my bookmarks and design ideas.
Would it be possible for you guys to set up live demos/previews of these sliders somewhere? I neither have time to watch the videos nor time to put together the sliders myself, so having a live preview would save me a lot of time in finding out whether it’s something I want to make myself (now or in the future).
Roland – check the author’s site by clicking her name (Leslie Bernal) and then look for ‘TUTS Y MΓS’ on the right hand menu.
Thanks everyone, glad you could find some useful bits in this! π
Great work on this, Leslie! I’ve been using negative margins and padding to arrange elements over my slides, but this is such a better method. I’m going to apply this ASAP. Well done!
Amazing help ! Thanks for sharing!
Leslie, Congratulations excellent work.
I am very grateful for this amount of ideas that you have shared to create new things on our websites.
successes
Great work with CSS design
Thank you for this helpful post!
Great!!
Great work on the custom slider, Leslie! Love the creativity.
Thanks Ryan π