Skip to content

Instantly share code, notes, and snippets.

@aaronrobertshaw
Created October 15, 2021 01:53
Show Gist options
  • Select an option

  • Save aaronrobertshaw/3f6d1db96936d45e04be78acd127bda5 to your computer and use it in GitHub Desktop.

Select an option

Save aaronrobertshaw/3f6d1db96936d45e04be78acd127bda5 to your computer and use it in GitHub Desktop.
Post Title block.json
{
"apiVersion": 2,
"name": "core/post-title",
"title": "Post Title",
"category": "theme",
"description": "Displays the title of a post, page, or any other content-type.",
"textdomain": "default",
"usesContext": [ "postId", "postType", "queryId" ],
"attributes": {
"textAlign": {
"type": "string"
},
"level": {
"type": "number",
"default": 2
},
"isLink": {
"type": "boolean",
"default": false
},
"rel": {
"type": "string",
"attribute": "rel",
"default": ""
},
"linkTarget": {
"type": "string",
"default": "_self"
}
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
"color": {
"gradients": true,
"link": true
},
"spacing": {
"margin": [ "top", "bottom" ]
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true
}
},
"style": "wp-block-post-title"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment