How to Use the Post Content Module in the Divi Theme Builder

Last Updated on September 18, 2022 by 20 Comments

How to Use the Post Content Module in the Divi Theme Builder
Blog / Divi Resources / How to Use the Post Content Module in the Divi Theme Builder
Play Button

The Post Content Module is a special module available when creating a Body Area Layout for a template in the Divi Theme Builder. Understanding what the Post Content Module is and how to use it will be extremely helpful when designing custom Templates with the Divi Theme Builder.

In this tutorial, we are going to go over how the Post Content Module works and how best to use it when designing templates in Divi.

Let’s dive in!

Subscribe To Our Youtube Channel

About Divi’s Post Content Module

Divi Post Content Module

The primary function of the Post Content Module is to display (and style) post or page content within a given Post or Page Template. The module is exclusively designed to work with the Theme Builder so it will not be availabl using the Divi Builder to edit a regular page or post.

In the Theme Builder, the Post Content Module creates an area for the Divi Builder to be used within the Body Area of a Theme Builder Template. It can also be used to display and style post or page content created using the default WordPress editor as well. This makes it especially great for creating blog post templates.

The module can be added to the body area layout of any template using the normal process of adding a new module in Divi. Simply click the add module icon and select the post content module from the list.

Divi Post Content Module

This will bring up the post content settings modal which includes all the design options available to add default style elements to be inherited by posts or pages assigned to the template.

Divi Post Content Module

The mock content is there to give us a helpful visual for how those elements will look on a live page or post.

Now that we have a brief introduction to the post content module, let’s explore how we might use it on our own Divi site.

Using the Post Content Module for Post Templates

Using the Post Content Module to display post content created with the classic or default editor (not Divi)

A very practical application of the post content module is to use the module to add styling to post content on the template to post content that has been created with WordPress’s default post editor (without using the Divi Builder).

For example, we could create a new template assigned to all posts on our Divi site.

Divi Post Content Module

Then use the Template Layout Editor to design the blog post template using static design elements and dynamic content.

Identify the area of the template where you want the actual post content from a single post to be displayed. Then add the Post Content module to the template layout.

Divi Post Content Module

Next, open the post content module settings to add the styling you want to be applied to any post content added to a new or existing post on your site. The Post Content Module has built-in mock content with various elements that can be styled. This mock content will be replaced by actual post content when viewing a post on the website.

Divi Post Content Module

With the post content module added to the template with the styles added to the post module settings, the post template is ready to be used by our blog posts on the live site.

We can create a new post or edit and existing post using the default editor or classic editor in WordPress.

If we use the classic editor, any content that is added to the content box using the wysiwyg editor will populate the area of the template styled by the Post Content Module.

Divi Post Content Module

If we use the default WordPress editor (or block editor), any content we build with block editor will populate (and inherit the styling of) the Post Content Module area of the Template.

Divi Post Content Module

Bloggers who prefer the default/classic editor won’t have to worry about styling the content since it will inherit the styling that was set in the post content module on the template.  So writers can concentrate more on the actual content. Plus, the post template will have additional design and dynamic content surrounding the post content to complete the overall design of the post.

Here is a look at the backend of a mock post built with the default/classic editor.

Divi Post Content Module

Here is the same post  when viewing it on the front end.

Divi Post Content Module

In addition to the design and dynamic content that exists on the template, notice the styling of the post content using the template

Divi Post Content Module

Using the Post Content Module to display post content built with Divi.

When using a post template for blog posts, we may decide to use the Divi builder to design one or more of our blog posts instead of using the default editor. This will give us greater control over the design of every element of the post content as opposed to simply relying the default editor and post content module styling within the template.

Bear in mind that even though we are using the Divi Builder to design the post, the total space of the post content design will be contained within the area designated by the post content module within the post template.

Divi Post Content Module

For more info, check out our documentation on how to build a site-wide blog post template.

Using the Post Content Module for Page Templates

Despite the name, the Post Content Module can be used for posts and pages alike. So, if we wanted to create a body template for one or more pages on our website, we would need to use the post content module to make sure the page content is displayed.

In most cases, creating a body template for one or more pages is unnecessary since each page usually consist of unique static content that is built on a page by page basis. However, there may be times were a body template will come in handy for pages as well. It may be helpful for adding template level design and content that we want displayed on pages automatically.

For example, we may want to include the same page title design for all pages throughout our site. Or, we may want to include a CTA like an Email Optin at the bottom of all (or some) our pages.

Here’s an example of how this would work on a website.

First, go to the Divi Theme Builder and create a new template. Then assign the template to all pages and add a custom body area to the template. After that, click to edit the custom body area.

Divi Post Content Module

In the Template Layout Editor, use the Divi Builder to design a page title section using dynamic content. We suggest using a text module and pull in the Post/Archive Title dynamic content element for the body content of the text module. The Post/Archive Title will also display page titles as well.

Divi Post Content Module

Then create a new section for the post content module. Again, this is necessary because without the post content module, the template will not display any individual page content or design.

Since this post content module will be the parent container for our page content, it is a good idea to allow the post content module to span the full width of the page. We can always adjust the spacing when designing the individual page content when using the Divi Builder.

Divi Post Content Module

Next, we can add a section at the bottom of the template that will be displayed on all pages.  Since we want the content to be displayed below the actual post/page content, we need to add it below the section containing the post content module.

Here is an example of a section created below the post content containing social icons and an email optin.

Divi Post Content Module

Note: Since we will be using the Divi Builder to design actual pages in Divi, we don’t really need to add styling to the post content module.

Now with our page template in place, we can create a new page in Divi by going to Pages > Add New. Then add a title and deploy the Divi Builder. Divi Post Content Module

Then click to build on the front end.

Divi Post Content Module

You can design the page content on the front end using Divi. But notice how the front end (visual) builder will be contained within the post content module area of the page template assigned to the page. When editing a post or page in the Divi Builder, the entire Divi Builder UI is displayed in the column that the Post Content Module is in. Everything else outside of this module is static and can’t be modified outside of the Theme Builder.

So for this example, the page consists of the following areas:

  1. Global Header (Added to Custom Header area of page template)
  2. Title Section (Added to the Custom Body Area layout of the page template above the page content)
  3. Post Content Section (Added to the Custom Body Area layout of the page template; consists of the Post Content Module which determines the building space for the Divi Builder)
  4. CTA Section (Added to the Custom Body Area layout of the page template below the page content)
  5. Global Footer (Added to Custom Footer area of the page template)

Here is what it looks like when editing the page on the front end with the Divi Builder.

Divi Post Content Module

Post Content Module works well for designing WooCommerce Pages Generated by Shortcodes.

The Post Content Module will also come in hand whenever we are building page templates for WooCommerce Pages. WooCommerce pages generate page content using shortcodes. These shortcodes exist within the content box of the WooCommerce page.

Here is what an account page looks like by default when editing the page in Divi.

Divi Post Content Module

To design a template for this WooCommerce Page, we don’t need to deploy the Divi Builder on the page editor. We can create a template in the Divi Theme Builder and target the design of the page content generated by the shortcode (at least some of it) using the post content module.

When you create the template, make sure to assign the template to the WooCommerce page(s).

Divi Post Content Module

Important: The post content module will not display the content of archive/category pages. Make sure you don’t assign the shop page to a template that depends on the post content module for displaying content. The shop page will not display any content. So, since we plan to use the post content module in the template, we will need to limit our template assignment to include the cart, checkout, and or My Account page(s) only.

Now we can add a custom body area to the template and build it using the template layout editor.

Divi Post Content Module

Then customize the page template using the Divi Builder. When you add the Post Content Module, make sure to update the design settings in order to target the design of the WooCommerce page elements generated by the shortcode.

Divi Post Content Module

And here is what the My Account Page would look like on the front end with the post content module styling in place.

Divi Post Content Module

Unfortunately, the post content module will not be able to directly style every element of the WooCommerce Page generated content. But this will provide a nice bonus when designing woocommerce page templates.

Not for Index/Archive/Category Page Templates

Since the Post Content Module is designed to display the content of a particular page or post created in Divi, it will not work with index(archive) page templates. If the template is used on an index(archive) page), the module is not rendered on the front end and therefore no content is displayed.

If this module exists in a Body Area, but no post content exists (or if the template is used on an index(archive) page), the module is not rendered on the front end.

In short, don’t use the post module content to display the content for archive pages, including search results page and 404 page.

Use Blog Module for Archive Page Templates.

If we want to build a template for archive pages, Divi’s blog module includes the option to display the content of the current page. This will generate the content associated with the category or archive page.

For more info, check out this post on how to build a category page template for your blog.

Not for Product Page Templates

When building a Product Page template for WooCommerce Products in Divi its best not to depend on the post content module to display Product information in the body area of the template. Divi has all the Woo Modules we need to pull in product info dynamically at the template level. Using the Post Content Module on a template assigned to a product page will only display the content included in the content box (which by default, is only the product description).

For more info, check out how to build a product page template.

Warning if Post Content Module is Missing

If the Post Content module is not included in the body of the Theme Builder Template and we choose to “Use the Divi Builder” to edit a post using that template, we are presented with a warning popup box that tells us that we are missing the Post Content Module on the template being used. There is also a button to take us directly to the theme builder to make the necessary change to the template.

Divi Post Content Module

Final Thoughts

When designing new templates for a Divi site, it is important to understand how to use the Post Content Module. The module is perhaps best used in conjunction with dynamic content elements to create a template for blog posts, which can streamline the creation workflow of creating blog posts without having to deploy the Divi Builder. But the post content module can also come in handy for page templates as well, even WooCommerce pages.

What has been your experience with the Post Content Module so far?

I look forward to hearing from you in the comments.

Cheers!

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time 👇

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

How To Supercharge Your Divi Ecommerce Websites

How To Supercharge Your Divi Ecommerce Websites

Posted on December 8, 2024 in Divi Resources

Looking to create better eCommerce stores with Divi and WooCommerce? The Cyber Monday Ecommerce Bundle is your key to creating visually stunning, high-performing online stores. This collection of Divi extensions, child themes, and templates is designed to simplify your workflows, improve site...

View Full Post

20 Comments

  1. Please help. I made a mistake I have lost all my pages. In the Divi Theme Builder I added global body to all pages and now nothing will show up on my pages. Please help!!! Can we just reverse what I did. What happens if you delete the global body?

    • Sorry to hear about that, I suggest that you reach out to the Support Team by opening a chat and providing them with all the details of what happened.

  2. How can I set the post content to not show the featured image?

    Thank you

  3. The sad thing is that we can use only one time post module content and we cannot create complex layouts through the theme builder I guess

    Hope that you will include that on future release

  4. “Note: Since we will be using the Divi Builder to design actual pages in Divi, we don’t really need to add styling to the post content module.”

    Based on my recent experience, not only do you “not need to add styling”, if you do, it can’t be overwritten by module settings on individual posts/pages. Example: If I set the color for H2 to red in the post content module, then want H2 in a particular text module to instead be black, that simply can’t be done. Post content module settings override module settings on individual posts. Which is disappointing, as I am back to setting site-wide H2-H6 font styling in the Theme Customizer or in a child theme.

  5. The only problem I’m facing is that there is no way to change post content background from white to something else.
    Please advise.

  6. “If we use the classic editor, any content that is added to the content box using the wysiwyg editor will populate the area of the template styled by the Post Content Module.”

    Not really “any content”. The Post Content Module will not display the image gallery of a Gallery Post Format. However, the slideshow thumbnail in post archives will render. This needs to be addressed!

  7. It looks like I can have only 1 post content area per page. Is that correct? If I want to do a 2 column layout with editable text (post content) on one column, for example, and editable photo (post content) and caption (post content) on the other, so the editor doesn’t change the layout, how do I do that? Am I missing something about using multiple post content modules?

    • Stephen,

      Sorry for not being clear about this. There can only be one post content module per template layout. Plus, since the post content module only displays the content area of a post, you wouldn’t be able to break it up into pieces. However, what you are describing can be done using custom fields. For example, you could create a custom field for an editable photo on the backend of your post editor. Then you can pull in that photo use dynamic content in the Divi Theme Builder Template layout editor (that was a mouthful haha). So… one column for the post content and another for the photo/custom field. Hope that helps.

  8. Excited about the theme builder and templating for posts, but is there an option to not override the styles applied by the post themselves, i use an image gallery plugin and when post content overrides the CSS for all images.

    Is there a way to just display the blog content as entered in the default Text editor and my site wide CSS takes care of the rest ? or atleast have an option to not apply the image CSS overrides ?

  9. Please, I want to clear my understanding of this. Can this page builder be used to create a viral website like Buzzfeed?
    Add the reaction buttons after posts?
    Curate trending page?

  10. Default WordPress post editor is my favorite tool for writing professional blogs day-by-day. It’s great to see that I can finally use it fully alongside Divi.

  11. Sir i have create a new website but don,t know how to use it in my website . but when I read your article then i understood how to use it .now i use Divi Builder for website.Thank you for sharing this valuable information. Your articles are always very informative.keep it up for more valuable knowledge. now I’m following you.

  12. Sir i have create a new website but don,t know how to use it in my website . but when I read your article then i understood how to use it .now i use Divi Builder for website.

  13. The most important docu! Now the same for search result pages need.

    One question: How to show the menue bar on top of the header section (primary menue?) Doesn’t work for me.

    • @marko Why don’t you try making the other menu in header template too? Basically add another row and design it.

  14. The post content module is a great addition for wrapping post content into bespoke page layouts and good to be able to use it as away to integrate content made with the block editor where you can also use all the third party blocks.

    Elegant themes needs to up its game though to address many of the issues surrounding custom post types with custom field so that they integrate properly when using the builder on theme templates and the dynamic content feature. And not just the post content in one blob as facilitated by the post content module. It needs to be more broad so that custom field values can be interpolated inline anywhere in the template. And, render a sample post of the post type that the template is applied.

    I am making the case here for users if Toolset as some work has been done to address this for users of ACF. There is a deluge of comments on the Divi 4 announcement post from Toolset (and WPML) users regarding a slew of issues relating to many things breaking:

    https://www.elegantthemes.com/blog/theme-releases/divi-4#respond

    Many other page builders are moving into full site customisation that includes templating with proper integration with ACF and Toolset.

    On another note Divi really needs to be re-engineered to make it leaner. In the last two days I have given serious consideration to moving to Oxygen builder.

    • You should go look at the video that Oxygen has on its front page, about 22:38, and see what they highlight about builders and load times/performance and how code is used and loaded. I have tested on a number of Oxygen built sites and while not all are great, they do tend to load in about half the time of Divi according to GTMetrix.
      Also the way Divi and other builders use shortcodes for site structure and how these are left once the software is turned off. I think Brizy is the only builder I know of that renders directly to html.

      I was hoping that Divi 4 was going to be re-engineered to perhaps be based on how blocks are marked up in Gutenberg, hence the reason why it took so long for Divi 4 to be released. But I guess I was wrong.

  15. There needs to be more columns available in the Divi Builder especially for the Speciality Sections since the builder template overrides the page settings and in particular the sidebar.

  16. Am i right – or is in the post content module no visualisation of the tags? How to show the tags in that construct.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

👋 It's The Divi
Cyber Monday Sale!
Get The Deal
Before It's Gone!
Join To Download Today