The document provides information about a live coding session on developing blocks without React in WordPress. It includes announcements about the session format and objectives, as well as resources for the code examples. The session objectives are to review the current block code, introduce block schema and block supports, and demonstrate how to add block supports like colors and padding through the block.json file.
2. 2
👋🏽
Welcome!
As you join, please make sure you have your local
development environment ready:
• A local WordPress installation
• A code editor like VSCode or Sublime
• Version 0.0.4 of the plugin code
• https://github.com/jonathanbossenger/wp-
learn-javascript/releases/download/0.0.4/wp-
learn-javascript.0.0.4.zip
Then, let everyone know in the chat where you’re
joining us from…
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Ex-developer turned code instructor
○ Sponsored contributor at Automattic
○ @jon_bossenger in Twitter
4. Announcements
○ Welcome!
○ We’ll be presenting in focus mode, but please consider enabling your video.
○ You are welcome to ask questions.
○ You are welcome to post questions in the chat, or unmute to ask questions.
5. Announcements
○ Please consider taking the Learn WordPress Learner Survey
• https://learn.wordpress.org/individual-learner-survey/
○ Make sure your local install is ready
• https://github.com/jonathanbossenger/wp-learn-
javascript/releases/download/0.0.4/wp-learn-javascript.0.0.4.zip
○ If I am going too fast, please let me know!
○ We will be posting this session to https://wordpress.tv/ afterwards
○ For more WordPress focused content please visit https://learn.wordpress.org/
6. Learning Outcomes
1. Review of the current block code block code
2. Introduction to Block Schema
3. Overview of Block Supports
4. Learn how to add blocks supports via the block.json file
7. Objectives 1
1. Review the current block code
2. Add the $schema key to the block.json and learn how to use it
3. Add support for block colors (background and text)
4. Add support for block padding (via spacing)
5. Set a default block background color via the block attributes
7