<!-- wp:clanbite/team-cover /-->Displays the team cover image on single team templates.
Dynamic
- Block name
clanbite/team-cover- Title
- Team cover
- Category
clanbite-teams- Post types
clanbite_team- Uses context
postId,postType
Attributes
| Attribute | Type | Default | Values |
|---|---|---|---|
minHeight | string | 220px | |
contentPosition | string | bottom center | |
templateLock | string|boolean | One of all, insert, contentOnly, false |
Supports
{
"spacing": {
"margin": [
"top",
"bottom"
],
"padding": true,
"blockGap": true,
"__experimentalDefaultControls": {
"padding": true,
"blockGap": true
}
},
"border": {
"color": true,
"radius": true,
"style": true,
"width": true
},
"shadow": true,
"color": {
"text": true,
"background": false,
"heading": true,
"__experimentalSkipSerialization": [
"gradients"
],
"enableContrastChecker": false
},
"anchor": true,
"html": false,
"align": [
"wide",
"full"
],
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true,
"__experimentalDefaultControls": {
"color": true,
"radius": true,
"style": true,
"width": true
}
},
"dimensions": {
"aspectRatio": true
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"layout": {
"allowJustification": false
},
"allowedBlocks": true
}Markup
<!-- wp:clanbite/team-cover /-->Defined in src/blocks/teams/team-cover/block.json