Divi timeline module is one of the perfect front-end design you should be using if you want to highlight a certain process. In this blog, I will breakdown how you can manipulate your Divi timeline template using a custom CSS grid.

 

1. Declare a CSS Class On Your Divi Column Module

The column holds your text modules so we need to attach the custom CSS class to tweak the standard design in Divi. For this example, I prefer to name it grid-process.

Why I am using 1 column instead of 2?
If we use 2 columns, we can’t manipulate the text modules position. Basically, if you want to have full access to the positions of your text modules, they should be only sitting on 1 container. 

steps to create divi timeline template

2. Determine the position of Divi timeline text modules

These text modules are categorized into 3 sections namely v-line, right-align and left-align. Label as Line should have a class of v-line while Left should be left-align and obviously Right should be right-align. 

placement of the text module to create divi timeline module

Let’s use the Left: 1. Initial Consult Label as an example. If you check the screenshot below, I have labeled the class to left-align because the Label is left.

Also, don’t forget to add the pagination class. Since this is number one, I added a class name called p-one. Kindly follow the process on the rest text modules.

Don’t have time to follow the steps above? Hire me for only $25 one-time setup, just leave me a message on Facebook

divi timeline template tutorial

 
[ads]

Now, go back to content tab and type the following html code below under text tab. You can rename the class to stepwhite if you want to change the color into white instead of navy blue.

how to create right to left icon for divi timeline module

We’re almost finished! For the Line label, you can keep the CSS Class empty but make sure you put the empty div class just like below.

Feel free to change the color of your vertical line by changing the hex color under background e.g <div class=”v-line” style=”background:red;”></div>

html code to create vertical line at the middule of the divi timeline module

 

It’s time to style your Divi timeline template! Go to WordPress dashboard > Divi > Theme Options > Custom CSS

/*process */
span.stepnavy, span.stepwhite{
float:left;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
box-shadow: 2px 10px 3px rgba(0,0,0,0.15);
font-weight: bold;
line-height: 2.6em;
margin-right: 5px;
text-align: center;
width: 2.6em;
}span.stepwhite {
background: #fff;
color: #2C3A5A;
}span.stepnavy {
background: #2C3A5A;
color: #fff;
}@media (min-width:768px) {
.grid-process .et_pb_column {
display:grid;
grid-template-columns: 49% 2% 49%;
grid-template-areas:
‘two v-line one’
‘three v-line four’
‘five v-line six’;}.v-line {
grid-area: v-line;
height:300px;
width:2px;
margin: 0 auto;
}.p-one {grid-area: one;}
.p-two {grid-area: two;}
.p-three {grid-area: three;}
.p-four {grid-area: four;}
.p-five {grid-area: five;}
.p-six {grid-area: six;}.right-align span.stepnavy,
.right-align span.stepwhite {
float:right;
margin-left:2rem;
margin-right:-2rem;
}.right-align h3, .right-align p {
text-align:right;
}.right-align p {
margin-right:2rem;
}.left-align span.stepnavy,
.left-align span.stepwhite{
margin-left:-2rem;
margin-right:2rem;
}.left-align p {
margin-left:3rem;
}}

Here’s the preview. This can be tweak according to your liking. Just edit the position of your grid areas for more flexible look.

Don’t have time to follow the steps above? Hire me for only $25 one-time setup, just leave me a message on Facebook

divi timeline module

Share This