If and when do I need to add block markup code?
-
I’m starting from scratch creating a custom block theme. This is for the purpose of understanding the technology and new concepts as much as possible. I have experience with “classical” theming. I have questions about block markup code. I’ve been told that the purpose of the block markup code is to create meta data about the blocks and configuration for the blocks.
Questions:
– If I don’t need to create any configuration for any blocks, do I need to add markup code?
– In my example below, if I don’t need my client to configure anything relating to the footer, then do I need “wp:group” for any reason?
– Why do I want to include markup such as wp:group?My footer:
<!-- wp:group {
"align":"wide",
"layout":{
"type":"flex",
"orientation":"vertical",
"justifyContent":"center"
}
} -->
<div class="wp-block-group">
<!-- wp:site-title {"level":0} /-->
<!-- wp:paragraph -->
<p>Copyright</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
- You must be logged in to reply to this topic.