Post Title Module¶
The Post Title module displays a post's title, publication metadata, and featured image with full styling control, designed primarily for use in Theme Builder templates.
Quick Reference
What it does: Dynamically displays a post's title, author, date, comment count, and featured image in Theme Builder templates.
When to use it: Custom blog post headers, minimal page titles, portfolio project headers
Key settings: Show Title, Show Meta, Show Author, Show Publish Date, Show Featured Image
Block identifier: divi/post-title
ET Docs: Official documentation
When to Use This Module
- Building branded, consistent post headers in Theme Builder templates
- Displaying dynamic post metadata (author, date, comments) with full styling control
- Creating custom title areas for any post type including pages, projects, and products
When NOT to Use This Module
- Adding a static heading to a regular page → use Heading or Text
- Navigating between adjacent posts → use Post Navigation
Overview¶
The Post Title module gives you precise control over how the title area of a blog post, page, or custom post type is presented. Instead of relying on your theme's default title output, this module lets you configure exactly which elements appear (title, author, date, comment count, featured image) and how they are styled. Each element can be toggled independently, so you can build anything from a minimal title-only header to a rich post header with full metadata and a prominent featured image.
This module is most commonly used within Divi Theme Builder templates, where it replaces the default post title rendering with a customizable version. When placed in a post body template, it dynamically pulls the title, meta, and featured image from whichever post is being viewed. This makes it essential for building consistent, branded post layouts across your entire site.
Beyond blog posts, the Post Title module works with any post type that has a title and featured image, including pages, projects, products, and custom post types. It integrates with the Divi loop system, allowing it to function within repeating content structures as well. For additional reference, see the official Elegant Themes documentation.
View A Live Demo Of This Module
The Post Title module displaying a post's title, metadata, and featured image in a Theme Builder template.
Use Cases¶
- Custom Blog Post Header — Place the Post Title module at the top of a Theme Builder post body template to create a branded, consistent header for every blog post. Enable the title, author, date, and featured image to give readers full context at a glance.
- Minimal Page Title — Use the module on page templates with only the title enabled and all meta elements disabled. Style the title with a large font size and custom color to create a clean, prominent page heading that matches your design system.
- Portfolio Project Header — Apply the module to a custom project post type template, showing the title and featured image while hiding the date and comment count. This creates a visually focused header appropriate for case studies and portfolio pieces.
How to Add the Post Title Module¶
- Open the Theme Builder or Visual Builder on the template or page where you want the post title to appear.
- Click the gray + icon to add a new module to a row.
- Search for "Post Title" in the module picker or find it in the Content Elements category, then click to insert it.
Settings & Options¶
The Post Title module settings are organized across three tabs: Content, Design, and Advanced.
Content Tab¶
The Content tab controls which post elements are visible, how the module links, and whether it participates in loop-based layouts.
| Setting | Type | Description |
|---|---|---|
| Show Title | toggle | Display or hide the post title. When enabled, the title is pulled dynamically from the current post. This is the primary element of the module. |
| Show Meta | toggle | Display or hide the metadata line below the title. This is a master toggle that controls the visibility of the entire meta section. |
| Show Author | toggle | Display or hide the post author's name within the metadata line. Only visible when Show Meta is also enabled. |
| Show Publish Date | toggle | Display or hide the publication date within the metadata line. Only visible when Show Meta is enabled. |
| Show Comments Count | toggle | Display or hide the number of comments associated with the post. Only visible when Show Meta is enabled. |
| Show Featured Image | toggle | Display or hide the post's featured image within the module. The image typically appears above or below the title and meta area depending on the layout. |
| Link | url | Make the entire Post Title module wrapper clickable, directing users to a specified page, section, or external URL. Configure whether the link opens in the same window or a new tab. |
| Background | background controls | Set a background color, gradient, image, or video behind the entire Post Title module container. Supports multi-layered backgrounds with blend modes. |
| Loop | loop toggle | Enable the loop builder to use this module within repeating content structures. When enabled, the module dynamically sources its content from the current item in the loop. |
| Order | order controls | Define the display order of the Post Title module within Flexbox and CSS Grid parent layouts. Useful when the visual order should differ from the DOM order. |
| Meta | admin label | Assign a custom admin label to the module for easier identification in the Visual Builder layer panel. Force visibility in the builder interface. |
Design Tab¶
The Design tab provides visual control over the typography, spacing, and standard styling options for the post title and its associated elements.
This module has no module-specific design settings. All design controls use shared options groups.
Shared design options — see Options Groups for detailed documentation:
| Options Group | Description |
|---|---|
| Text | Font, weight, alignment, color, line height, text shadow |
| Title Text | Font, weight, size, color, letter spacing, line height, text shadow for the post title |
| Meta Text | Font, size, color, spacing for metadata (author, date, comment count) |
| Sizing | Width, max-width, min-height, height, alignment |
| Spacing | Margin and padding with responsive breakpoint controls |
| Border | Width, color, style, border radius |
| Box Shadow | Horizontal/vertical offset, blur, spread, color, position |
| Filters | Brightness, contrast, saturation, hue rotation, blur, invert, sepia, opacity, blend mode |
| Transform | Scale, translate, rotate, skew, transform origin |
| Animation | Entrance animation style, direction, duration, delay, intensity |
Advanced Tab¶
The Advanced tab provides developer-oriented controls for custom attributes, conditional display logic, and scroll-driven effects.
Shared advanced options — see Options Groups for detailed documentation:
| Options Group | Description |
|---|---|
| Attributes | CSS ID, classes, custom HTML attributes |
| CSS | Custom CSS per element target (container, title, meta, featured image, author, date, comments count) |
| HTML | Custom HTML attributes for module wrapper |
| Conditions | Display rules (user role, page type, date, logic) |
| Interactions | Hover, click, or scroll-triggered interactions |
| Visibility | Device visibility toggles |
| Transitions | Hover transition timing |
| Position | CSS position and offsets |
| Scroll Effects | Scroll-driven animation effects |
Code Examples¶
Custom CSS¶
/* Large, bold post title with underline accent */
.et_pb_post_title .et_pb_title_container h1.entry-title {
font-size: 2.5rem;
font-weight: 800;
line-height: 1.2;
padding-bottom: 1rem;
border-bottom: 3px solid var(--et-global-color-primary);
margin-bottom: 1rem;
}
/* Style the meta line with muted color and spacing */
.et_pb_post_title .et_pb_title_container .et_pb_title_meta_container {
font-size: 0.85rem;
color: #888888;
letter-spacing: 0.02em;
}
/* Add spacing between meta items */
.et_pb_post_title .et_pb_title_meta_container span {
margin-right: 1rem;
}
/* Style the featured image */
.et_pb_post_title .et_pb_title_featured_container img {
border-radius: 8px;
margin-top: 1.5rem;
}
/* Responsive adjustments */
@media (max-width: 980px) {
.et_pb_post_title .et_pb_title_container h1.entry-title {
font-size: 1.75rem;
}
}
PHP Hooks¶
/**
* Filter the Post Title module output to wrap the title in a custom element.
*/
add_filter( 'et_module_shortcode_output', function( $output, $render_slug ) {
if ( 'et_pb_post_title' !== $render_slug ) {
return $output;
}
$output = str_replace(
'class="et_pb_post_title',
'class="et_pb_post_title my-custom-post-title',
$output
);
return $output;
}, 10, 2 );
/**
* Add reading time estimate after post title meta.
*/
function my_add_reading_time_to_post_title() {
global $post;
if ( ! $post ) return;
$content = get_post_field( 'post_content', $post->ID );
$word_count = str_word_count( strip_tags( $content ) );
$minutes = max( 1, ceil( $word_count / 250 ) );
echo '<span class="reading-time">' . $minutes . ' min read</span>';
}
add_action( 'et_pb_post_title_after_meta', 'my_add_reading_time_to_post_title' );
Common Patterns¶
-
Full-Width Post Header with Featured Image — Place the Post Title module in a fullwidth section at the top of a Theme Builder post body template. Enable all elements (title, meta, featured image) and use a dark background with light text. Apply the featured image as the module background and add an overlay via the Background settings to create a dramatic hero-style post header.
-
Minimal Title and Date — Enable only the title and publish date, hiding the author, comment count, and featured image. Style the date in a small, muted font below the title. This pattern works well for corporate blogs and documentation sites where a clean, understated header is preferred.
-
Sticky Post Title Bar — Use the Position settings in the Advanced tab to set the module to "sticky" positioning. Combine this with a solid background color and reduced padding to create a post title that stays visible at the top of the viewport as the reader scrolls through the article. Set a high z-index to ensure it remains above other content.
AI Interaction Notes¶
Create vs. Modify
Modifying existing module content via REST API (wp.apiFetch PATCH) updates
title, body text, and settings attributes. Creating new modules via REST API
produces content that renders on the front end but may not appear in the Visual
Builder layer view. Use browser automation for reliable module creation.
See REST API Content Playbook.
Block identifier: divi/post-title — Needs verification on current build
| Operation | Method | Status | Notes |
|---|---|---|---|
| Read content | Parse post_content block JSON |
Observed | Use brace-depth parser — see Content Encoding |
| Modify existing | wp.apiFetch PATCH on post endpoint |
Observed | Update block attributes in post_content |
| Create new | Browser automation (Playwright) | Observed | REST creation may break VB visibility |
| Batch modify | Sequential REST requests | Needs Testing | See REST API Content Playbook |
Key content attributes — JSON paths need verification:
| Attribute | JSON Path | Notes |
|---|---|---|
| Show Title | attrs.title |
Toggle post title display |
| Show Meta | attrs.meta |
Master toggle for metadata section |
| Show Author | attrs.author |
Toggle author name in meta |
| Show Date | attrs.date |
Toggle publish date in meta |
| Show Featured Image | attrs.featured_image |
Toggle featured image display |
Module Selection Guidance
For displaying post metadata in Theme Builder templates use Post Title; for static headings use Heading or Text.
Saving Your Work¶
After configuring the Post Title module:
- Save changes — Click the purple Save button at the bottom of the Visual Builder, or press
Ctrl+S(Windows) /Cmd+S(Mac). - Exit the builder — Click the X button or use
Ctrl+Shift+Eto return to the WordPress dashboard.
Version Notes¶
Divi 5 Only
This page documents Divi 5 behavior exclusively. The Post Title module in Divi 5 includes loop integration and updated markup compared to earlier versions. Class names and DOM structure may differ from Divi 4.
Troubleshooting¶
Title Showing Placeholder Text in Builder
When editing a Theme Builder template, the Post Title module displays placeholder content because there is no specific post context. This is expected behavior. Save the template and preview an actual post to see the real title, meta, and featured image pulled from that post's data.
Featured Image Not Displaying
If the featured image does not appear despite being enabled, verify that: (1) the post being viewed has a featured image assigned in the WordPress editor, (2) the Show Featured Image toggle is enabled in the Content tab, and (3) no CSS or condition is hiding the image element. Also check that image dimensions are not set to zero in the Design tab.
Meta Elements Not Appearing
The individual meta toggles (Show Author, Show Publish Date, Show Comments Count) only take effect when the master Show Meta toggle is also enabled. If individual meta items are turned on but nothing appears, check that Show Meta is set to "Yes" in the Content tab.
Related¶
- Post Navigation Module — Add previous/next post links for sequential browsing
- Post Slider Module — Display posts in a sliding carousel format
- Comments Module — Render the comment form and comment list for posts