Content Block

The Content Block is designed to display a main heading followed by a series of structured content items, each with its own subheading and descriptive text. It's ideal for presenting detailed information in a clear, hierarchical format.


Content Editor Fields

General Settings

  • Heading:

    • Description: The primary title for the entire content block.
    • Usage: Enter the main heading for this section.
    • Requirement: Optional.
  • Heading Styles:

    • Description: Controls the font style of the main heading.
    • Options:
      • Theme font (Default)
      • Special font (Gooddog)
    • Usage: Select a style for the main heading to alter its appearance.
    • Requirement: Optional.

Content Fields

  • Content (Repeater):
    • Description: A list for adding structured content blocks, each with its own subheading and paragraph.
    • Usage: Use this for detailed points where each has its own title and description.
    • Requirement: Optional.
    • Fields (per item):
      • Content Subheading: The subheading for the content item.
      • Content Excerpt: The paragraph/body text for the content item (supports rich text).

Example Usage:

Steps:

  1. Add the block: Insert the Content Block into your page.
  2. Add Main Heading:
    • Fill in the Heading field if you need a title for the whole section.
    • Choose a Heading Style if desired.
  3. Add Content Items:
    • In the Content section, click "Add Row".
    • Fill in the Content Subheading and Content Excerpt for your first item.
    • Repeat for all items you wish to add.
  4. Save the Page: The block will now render your structured content.

Preview with image:

content block preview

Editor preview:

content block acf fields


Result:

The block will render a section with an optional main heading, followed by a list of content items. Each item will display its own subheading and paragraph, creating a well-organized and easy-to-read text layout.


Benefits:

  • Hierarchical: Clearly separates a main topic from its sub-points using distinct heading levels.
  • Structured: Organizes content into logical subheading/paragraph pairs, improving clarity.
  • Readable: Breaks down complex information into smaller, digestible chunks, enhancing user experience.
  • Flexible: The main heading is optional, and you can add as many content items as needed to suit your content.

Conclusion:

The Content Block is a versatile tool for presenting structured text. It is perfect for detailed explanations, service descriptions, feature breakdowns, or any content that benefits from a clear, sectioned layout.