Text Columns (deprecated)

In this article

This block is deprecated and should not be used in new content. Please use the Columns block instead.
  • Name: core/text-columns
  • Category: design
  • API Version: 3
  • Block Type: Static (saved in post content)

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
content array [{},{}] Source: query. Selector: p
columns number 2
width string

Supports

Defined via the supports property in block.json.

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:core/text-columns {"width":"center"} -->
<div class="wp-block-text-columns aligncenter columns-2">
    <div class="wp-block-column">
        <p>One</p>
    </div>
    <div class="wp-block-column">
        <p>Two</p>
    </div>
</div>
<!-- /wp:core/text-columns -->

Source