| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 { 2 "$schema": "https://schemas.wp.org/trunk/block.json", 3 "apiVersion": 3, 4 "name": "core/cover", 5 "title": "Cover", 6 "category": "media", 7 "description": "Add an image or video with a text overlay.", 8 "textdomain": "default", 9 "attributes": { 10 "url": { 11 "type": "string", 12 "role": "content" 13 }, 14 "useFeaturedImage": { 15 "type": "boolean", 16 "default": false 17 }, 18 "id": { 19 "type": "number" 20 }, 21 "alt": { 22 "type": "string", 23 "default": "" 24 }, 25 "hasParallax": { 26 "type": "boolean", 27 "default": false 28 }, 29 "isRepeated": { 30 "type": "boolean", 31 "default": false 32 }, 33 "dimRatio": { 34 "type": "number", 35 "default": 100 36 }, 37 "overlayColor": { 38 "type": "string" 39 }, 40 "customOverlayColor": { 41 "type": "string" 42 }, 43 "isUserOverlayColor": { 44 "type": "boolean" 45 }, 46 "backgroundType": { 47 "type": "string", 48 "default": "image" 49 }, 50 "focalPoint": { 51 "type": "object" 52 }, 53 "minHeight": { 54 "type": "number" 55 }, 56 "minHeightUnit": { 57 "type": "string" 58 }, 59 "gradient": { 60 "type": "string" 61 }, 62 "customGradient": { 63 "type": "string" 64 }, 65 "contentPosition": { 66 "type": "string" 67 }, 68 "isDark": { 69 "type": "boolean", 70 "default": true 71 }, 72 "templateLock": { 73 "type": [ "string", "boolean" ], 74 "enum": [ "all", "insert", "contentOnly", false ] 75 }, 76 "tagName": { 77 "type": "string", 78 "default": "div" 79 }, 80 "sizeSlug": { 81 "type": "string" 82 }, 83 "poster": { 84 "type": "string", 85 "source": "attribute", 86 "selector": "video", 87 "attribute": "poster" 88 } 89 }, 90 "usesContext": [ "postId", "postType" ], 91 "supports": { 92 "anchor": true, 93 "align": true, 94 "html": false, 95 "shadow": true, 96 "spacing": { 97 "padding": true, 98 "margin": [ "top", "bottom" ], 99 "blockGap": true, 100 "__experimentalDefaultControls": { 101 "padding": true, 102 "blockGap": true 103 } 104 }, 105 "__experimentalBorder": { 106 "color": true, 107 "radius": true, 108 "style": true, 109 "width": true, 110 "__experimentalDefaultControls": { 111 "color": true, 112 "radius": true, 113 "style": true, 114 "width": true 115 } 116 }, 117 "color": { 118 "heading": true, 119 "text": true, 120 "background": false, 121 "__experimentalSkipSerialization": [ "gradients" ], 122 "enableContrastChecker": false 123 }, 124 "dimensions": { 125 "aspectRatio": true 126 }, 127 "typography": { 128 "fontSize": true, 129 "lineHeight": true, 130 "__experimentalFontFamily": true, 131 "__experimentalFontWeight": true, 132 "__experimentalFontStyle": true, 133 "__experimentalTextTransform": true, 134 "__experimentalTextDecoration": true, 135 "__experimentalLetterSpacing": true, 136 "__experimentalDefaultControls": { 137 "fontSize": true 138 } 139 }, 140 "layout": { 141 "allowJustification": false 142 }, 143 "interactivity": { 144 "clientNavigation": true 145 }, 146 "filter": { 147 "duotone": true 148 }, 149 "allowedBlocks": true 150 }, 151 "selectors": { 152 "filter": { 153 "duotone": ".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background" 154 } 155 }, 156 "editorStyle": "wp-block-cover-editor", 157 "style": "wp-block-cover" 158 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed May 6 08:20:15 2026 | Cross-referenced by PHPXref |