Divi Tips 83: Divi article template

Divi Post Template: simply style your blog posts!

Updated on 12/07/21

2332 words

8 minutes of reading
168 comments

This article contains affiliate links recognizable by the percentage icon (%) → I am an affiliate link

I propose a manual for use, step by step, to define the design of your Divi article template. Here is what you will get by following this tutorial:

Thanks to feature of Theme Builder, Divi allows you to customize all templates of your site (all models of the Divi Theme).

We had previously seen how customize shop page and how Create a Product Sheet Template... It's time to attack the design your blog articles !

1 – What is an article template?

One "template" is simply a "model".

This means that creating a new model – whether for articles, pages, products etc. – apply to all content using this template.

So by creating a Divi article template, all your blog articles (those already published and the next) will use the same design. You create the model only once and all your articles will have the same composition, this is the goal of a "template".

This is possible only by using the Theme Builder Since the latter allows to modify the model files of the theme.

Template Hierarchy WordPress
Template Hierarchy WordPress: hierarchy of model files

For information, articles generally use the theme file named «single.php« . So it's this one that will be modified by the builder theme... No more need theme child I don't know how to code!

👉 Découvrez aussi how to create a search page template (search page)

Need to master Divi? Discover my training that accompanies you step by step in the understanding and use of Divi! Learn more about Divi training.

2 - What does a classic Divi template look like?

If you use the Divi theme "base" (if you can say it like that) and you haven't created it yet model with the Divi Theme Builder, your blog posts should look more or less like this:

Classic Divi Article Template
Appearance of a classic Divi article template (without the Divi Theme Builder)

On this screenshot, you can see a classic article, written with the WordPress editor (Gutenberg), so an article that does not use the Divi Builder, nor Theme Builder (note that it is still possible use Divi modules in Gutengerg, without enabling the Visual Builder).

Also read: do not confuse the theme Divi with the Divi Builder.

You have to admit, it's not very glamorous... And I'm nice!

The article consists of the following elements:

  1. The Header (at the top of the screen) including the main menu and logo (we will not intervene on this part),
  2. The title of the article,
  3. Article metadata,
  4. Focus image,
  5. The content of the article (the text),
  6. The comments section,
  7. Sidebar (on the right side),
  8. The Footer (at the bottom of the screen) including credits and social media icons (we will not intervene on this part either).

Hey!Want to try the Divi theme for free?. Click on "TRY IT FOR FREE"

In the continuation of this tutorial, we will try to revitalize the whole so that the article is more "attractive" and more "design" to finally get a rendering as you could see in the video at the beginning of the article.

3 – Create a Divi article template with Builder Theme

Let's discover the few easy steps to achieve a model for all your items

Create a Divi article template
Create an article template with the Divi Theme Builder
  1. Go to tab Divi > Theme Builder
  2. Click "Add a new model"
  3. Check the box "All articles". If you create an article template on an existing site that has many articles, you can also assign this new template to a specific article (an article with few visits, for example). So you can fine-tune the design of this one before assigning to all your items.
  4. Validate by clicking "Create a Model"
  5. Click "Add a Personalized Body"
  6. Then on "Building a Personalized Body"
Add post title
Add the module "post title"
  1. Choose "Building from scratch"
  2. Click « + »
  3. Choose a line 1/1
  4. And start by inserting the module "Post title"

We will see this module in detail...

3.1 – Insert the module "Post title"

The Post title module allows you to add the title of your article to your template. This one is indispensable!

When you insert, the title is named « Your dynamic publication title will appear here ». Don't try to change it. As indicated, this is a "dynamic title", this means that each item will use this location to display its title. No matter if you wrote the article with Gutenberg or with the Divi Builder (from the tab Article > Add). Learn more about dynamic content here.

From the tab "Content", the module "Post title" offers various display options:

Set the module "Post Title"
Process the parameters of the "Post Title" module
  1. The title of the article.
  2. The metadata of the article.
  3. The author's name.
  4. Date of publication. This will also work if you use the date of updating the article.
  5. The category(s): they do not appear yet but will be clearly visible on the front-end side.
  6. The number of comments.
  7. Main image (forward image).
  8. Associated image position: this option offers 3 different positions for The image of the spotlight Your article. You will have a choice between « Title below » (image first and then title then), « Title above » (title first and then image then) and « Background image of the title ». I suggest that you use this last option which offers a much nicer visual than the other two. Thus, by choosing « Background image of the title », the forward image of your article will position itself in the background of the article title.
  9. Remember to validate and save your changes.

Always in the module settings "Post title" and always in the tab "Content", you can go to the section Background to add a color gradient that will be placed above the forward image.

Add "overlay"
Add an "overlay" over the forward image

This semi-transparent color that stands above your image (overlay) will only be visible if you enable the option « background image of the title ».

Otherwise, you can activate parallax effect so that the forward image is fixed in the background. It gives a very nice effect!

Add parallax to forward image Divi
Add parallax to forward image Divi

Be careful, if you activate this option, please consider these 2 important things:

3.2 – Insert the "Put Content" module

The title being set, you need to insert the « Publish Content » module so that your articles display their content (texts, images, etc.).

Add the module "Publish Content"
Add the "Put Content" module to make your articles appear

This module is very complete and is essential: it must be inserted in your Divi article template.

For setting, I give you an appointment to article dedicated to the module "Posting Content".

3.3 – Insert the "Comments" module

What would a blog article be without comment form?

However, this module is not indispensable, unlike the module "Post title" and « Publish Content ».

It is up to you to decide whether you want to accept comments in your articles.

Add the module "Comments"
Add the "Comments" module to your article template
  1. At the bottom of the article template, click the "+" grey. The latter allows to add a new module within the same "row".
  2. Insert it "Comments" module.
  3. You can view or not the photo of the author of the comment.
  4. You can display or hide the "answer" button.
  5. Display or hide the number of comments.
  6. Paint the design (police, size, color, etc.) of the "Comments" section from the "Style" and/or "Advanced" tab.
  7. Save your changes.

Also discover how create a 404 error page template !

4 - Refine the design of the article template

At this stage of the tutorial, your Divi article template should look like this:

Evolution of the Divi article template
Evolution of the article template – stage 1

For now:

  • Sidebar's gone.
  • The content width has expanded.
  • The title of the article and metadata appear in the center of the highlight image.
  • A colour gradient was placed on the forward image.
  • The comment form has been slightly modified.

4.1 – Pass image and title in full width

For an article design a little more "in the air of time", one could enlarge the focus image so that it has a width of 100%.

To do this, we will have to enlarge the box in which this image is located: we will act on the "row" (green box).

"Full width" row
Pass the "row" in full width mode
  1. Click on the toothed wheel to open the "row settings".
  2. Go to tab Style > Dimensioning
  3. Place maximum width 100%
  4. Same for the second value: push the cursor to the maximum.
  5. Go to tab Style > Spacing to place internal margins and margins at 0px.

At this point, the forward image must be 100% and it must touch the right and left edges of your screen.

However, it is possible that a margin persists at the top of the forward image (between the image and the main menu). If so, you can correct this using the following CSS code tip:

Added CSS for the row "full width"
Add some CSS to get a "full width" row without margin above

Go to tab Appearance > Customize > Additional CSS and paste the code below:

.et_pb_section_0_tb_body {
	padding-top: 0px !important;
}

@media (min-width: 981px){
	.et_pb_section_0_tb_body {
	padding-top: 0px !important;
}
}

This should correct this "resistant" margin and the highlight image of your article should touch the header of your site.

Discover how to add custom code in Divi

4.2 - Adjust the width of the article content

Same for the width of the content of your site. You could expand the container so that the text of your articles has a smaller lateral margin.

This is optional but if you want to act on these margins, here is the procedure:

Content in full width template article Divi
Get the "Put Content" module in full width
  1. Open the "row settings" that contains the "Put Content" module.
  2. Go to tab Style > Dimensioning
  3. Place the maximum width cursor on 100%
  4. Drag the second cursor to the maximum
  5. Go to tab Style > Spacing to add an internal left margin of 50px. This will prevent the text of your article from being completely "pasted" to the left of your screen.
  6. Don't forget to set the mobile and tablet versions by adding, this time, the internal margin to the left AND right.
  7. Save your changes.

4.3 – Add a sidebar Divi

Another fairly common element could be added within your Divi article template: a sidebar or sidebar.

This is very often found on blogs, even if the tendency tends to make it disappear completely...

Add a sidebar in the Divi article template
Add sidebar to Divi template
  1. Change the row that contains the "Put Content" module.
  2. Instead of using a 1/1 row, I propose to choose a composition of [2/3 + 1/3] or [3/4 + 1/4].
  3. In this new "quarter", a button "+" grey appears and allows you to add a new module.
  4. Insert a Sidebar module.
  5. In the settings of the module, you can choose which sidebar to make appear. This implies that your sidebars must be ready. You manage them on the tab Appearance > Widgets WordPress.

Then you will only have to stylise the appearance of the sidebar at your convenience thanks to the options of the module:

Stylize the sidebar Divi
Stylize the sidebar Divi
  1. On the tab Content > Background, choose a background color. I chose white.
  2. On the tab Style > Spacingadd a little internal margin. I've added 20px from all sides.
  3. On the tab Style > Shadow box, add a shadow to the sidebar to give a little relief.
  4. On the tab Style > Border, I made the choice of rounding the angles of my sidebar. But you can leave the right angles or add a color border if you want.
  5. On the tab Style > Transform > Slider Tool, you can move slightly the position of your sidebar. This tab is interesting to put one element on two sections. I moved my sidebar from -140px up and from -15px to the left.
  6. Be careful with this transformation option, make sure to set the values to 0px for mobile and tablet versions. Read also this article for optimize your sidebars for mobile versions.
  7. Save your changes.

5 - Final design of the Divi template

Tadaaa! Here is the final design of the model that will apply to all my blog posts.

Final Divi Article Template
Appearance of the Divi article template – final version

To do well, the comment form would still have to be stylized, which is still a little too classic to my liking.

Idea: you could assign this Divi article template to a single category of your blog and create slightly different versions for other categories. For example, you could assign a different sidebar for each category template in your blog. Or different colors etc.

Here are also other tutorials for your article templates:

With Divi, the possibilities are endless!

Divi Article Template
Template article Divi Theme Builder

Get Divi

Divi training

Ebook Divi PDF

Free tips

Divi Quiz

Live coaching

icon 256x256
Discover my wpLingua plugin, which makes your websites multilingual in just a few clicks! SEO-Friendly / Automatic / Editable

168 Comments

  1. Kaellyana
  2. Lycia Diaz
  3. Kaellyana
  4. Lycia Diaz
  5. Decoster
  6. Lycia Diaz
  7. James
  8. Decoster
  9. Lycia Diaz
  10. Decoster
  11. Lycia Diaz
  12. Jean-Luc Vandeweghe
  13. Lycia Diaz
  14. Lycia Diaz
  15. JLuc
  16. JLuc
  17. JLuc
  18. Lycia Diaz
  19. JLuc
  20. kaellyana
  21. Lycia Diaz
  22. Florent
  23. Lycia Diaz
  24. Lycia Diaz
  25. Florent
  26. Lycia Diaz
  27. Florent
  28. Lycia Diaz
  29. Thuret
  30. Lycia Diaz
  31. Bruno
  32. Lycia Diaz
  33. IsabelleM
  34. Jérémy
  35. Jérémy
  36. Lycia Diaz
  37. Bruno
  38. Lycia Diaz
  39. pierre-gerard martin
  40. Lycia Diaz
  41. José Caceres
  42. Lycia Diaz
  43. Sophie SEVERIN
  44. Gwendoline
  45. Lycia Diaz
  46. Lycia Diaz
  47. Rine.up
  48. Lycia Diaz
  49. Matt
  50. Sophie SEVERIN
  51. Lycia Diaz
  52. Sarah RIGAUD
  53. Lycia Diaz
  54. Laure
  55. Lycia Diaz
  56. Thomas
  57. Lycia Diaz
  58. Thomas
  59. Lycia Diaz
  60. Thomas
  61. Lycia Diaz
  62. Franck
  63. Alexandra
  64. Lycia Diaz
  65. Lycia Diaz
  66. Patrick
  67. Lycia Diaz
  68. ESSADDI
  69. Khalil
  70. Célia
  71. Lycia Diaz
  72. Lycia Diaz
  73. Sophie Pinguet
  74. Pat
  75. Lycia Diaz
  76. Pat
  77. Lycia Diaz
  78. Chrys
  79. Lycia Diaz
  80. Claire
  81. Antonin
  82. Lycia Diaz
  83. Lycia Diaz
  84. Youssef
  85. Lycia Diaz
  86. Youssef
  87. Lycia Diaz
  88. Youssef
  89. Lycia Diaz
  90. Marjorie
  91. ivan
  92. Lycia Diaz
  93. ivan
  94. Lycia Diaz
  95. Marie
  96. Lycia Diaz
  97. Lycia Diaz
  98. Alexandra Roux
  99. Lycia Diaz
  100. BORNET
  101. Lycia Diaz
  102. Anais
  103. Lycia Diaz
  104. Greg
  105. Marie
  106. Lycia Diaz
  107. Lycia Diaz
  108. Myrtille
  109. Lycia Diaz
  110. Maë
  111. Lycia Diaz
  112. Julien
  113. Lycia Diaz
  114. Jan
  115. Jan
  116. Lycia Diaz
  117. Jan
  118. Lycia Diaz
  119. Jérémy
  120. Lycia Diaz
  121. Jérémy
  122. Lycia Diaz
  123. Jérémy
  124. Lycia Diaz
  125. Sandra
  126. Lycia Diaz
  127. Sandra
  128. Lycia Diaz
  129. Sandra
  130. Lycia Diaz
  131. Sandra
  132. Lycia Diaz
  133. Marine
  134. Marie-Alix
  135. Lycia Diaz
  136. Marie-Alix
  137. Marie-Alix
  138. Lycia Diaz
  139. Lycia Diaz
  140. PABICH
  141. Susan
  142. Lycia Diaz
  143. Susan
  144. Lycia Diaz
  145. Susan
  146. 7hil
  147. Lycia Diaz
  148. Jean-Manuel
  149. Lycia Diaz
  150. Tran
  151. Lycia Diaz
  152. Lycia Diaz
  153. Lecaplain
  154. Lucie
  155. Lycia Diaz
  156. Lucie
  157. Lycia Diaz
  158. Lucie
  159. Lucie
  160. Lycia Diaz
  161. cecile spadotto
  162. Lycia Diaz
  163. jessica Chamand
  164. Joëlle Acoulon
  165. Lycia Diaz
  166. Scindee
  167. Lycia Diaz
  168. Lycia Diaz

Submit a comment

Your email address will not be published. Required fields are indicated with *

This site uses Akismet to reduce undesirables. Learn more about how your feedback data is used.