Skip to content

Commit

Permalink
Update nested templates to new columns format
Browse files Browse the repository at this point in the history
WordPress#7234 introduced a new column format.  This updates the documentation to match the new format.
  • Loading branch information
belcherj committed Jul 3, 2018
1 parent bf09112 commit 4d5b7ea
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ $template = array(
'placeholder' => 'Add a root-level paragraph',
) ),
array( 'core/columns', array(), array(
array( 'core/image', array( 'layout' => 'column-1' ) ),
array( 'core/paragraph', array(
'placeholder' => 'Add a inner paragraph',
'layout' => 'column-2'
array( 'core/column', array(), array(
array( 'core/image', array() ),
) ),
array( 'core/column', array(), array(
array( 'core/paragraph', array(
'placeholder' => 'Add a inner paragraph'
) ),
) ),
) )
);
```
```

0 comments on commit 4d5b7ea

Please sign in to comment.