-
Notifications
You must be signed in to change notification settings - Fork 123
Description
IMPORTANT:
** This lesson plan belongs to part of a greater course, Create a Custom Block Theme #1 **
Please reach out to @arasae (Sarah Snow) in the #training team Slack if you would like to help with this lesson plan.
Topic Description
This lesson provides a very high-level overview of theme.json and prepares users to begin writing theme.json code.
It prepares them to write their first line of code.
Objectives
After completing this lesson, participants will be able to:
Updated Objectives: 10/20/22
- Analyze how settings in a theme.json impact the site editor
- Describe how theme.json impacts what options are pre-set in a theme's site editor
Guidelines
Review the [team guidelines] (https://make.wordpress.org/training/handbook/guidelines/)
Development Checklist:
- Review any related material on Learn
- Description and Objectives finalized
- Gather links to Support, other learn.wordpress.org existing resources, and Developer Docs
- Create an outline of the example lesson walk-through
- Draft lesson plan
- Copy edit
- Style guide review
- Instructional Review
- Final review
- Publish
- Announce to the Training team
- Announce to lesson plan creator
- Announce to marketing
- Gather feedback from lesson plan users about the quality
Repo Structure and Lesson Plan Template
Please remove all blockquote comments such as this before publishing.
Description
Have you ever wondered what a theme.json file does? Do you want to learn how to get started coding with theme.json, but weren't sure where to get started? If so, this lesson plan is for you!
Target Audience
Who is this lesson intended for? What interests/skills would they bring? Put an "x" in the brackets for all that apply.
- Users / Content Writers
- Designers
- Beginner-Level Developers
- Developers
- Speakers
- Organizers
- Kids
Experience Level
How much experience would a participant need to get the most from this lesson? Put an "x" in the brackets for all that apply.
- Beginner
- Intermediate
- Advanced
Type of Instruction
Which strategies will be used for this lesson plan? Put an "x" in the brackets for all that apply.
- Text-and-Image-Based, Remote-First Course
- Exercises
- Slides
- [xn (MAYBE IF TIME ALLOWS)] Video Tutorial
Time Estimate (Duration)
How long will it take to present this lesson? Put an "x" in the brackets for the one that applies.
- 1-5 Minutes
- 5-10 Minutes
- 15+ Minutes
- 1 hour or less
Prerequisite Skills
Participants will get the most from this lesson if they have familiarity with:
- The WordPress dashboard
- Installing different themes
- The Schema line in theme.json
- Full Site Editing, especially related to Global Styles
- Coding languages of any sort in the past
Readiness Questions
These are important to include in case someone wants to use this lesson plan in-person as a stand-alone lesson.
- Are you comfortable navigating the WordPress dashboard?
- Are you comfortable installing and activating different WordPress themes?
- Have you experimented with block themes and the Site Editor in the past?
- Are you familiar with templates, template parts, and the Site Editor?
- Do you know what “Global Styles” are and why they are helpful to users?
- Have you ever coded anything in any language before? CSS, HTML, PHP, Java, Javascript, etc?
Slides
If someone wanted to run this lesson as a stand-alone Online Live Workshop or at an in-person WordCamp, you could create slides for this here; if you run a Live Online Workshop on one of these topics or find someone else has, related slides would be welcome!
None Exist Yet
Materials Needed
- Local development environment
- A text editor that supports the 'schema' line, such as VS Studio Code, PHP Storm or Sublime
- A local install of WordPress
- The files for the TwentyTwentyTwo theme
- A starter theme with a blank theme.json and the first few lines filled out (specifically version and schema) - an installable theme that has the very, very basic requirements can be accessed at this link here, in a Google Folder providing resources for this lesson plan. The Zip theme file is called "My Dream Block Theme".
Notes for the Presenter
/Include any tips needed to present this topic for a Live Online Workshop or in an in-person classroom setting.
- Note 1
- Note 2
A list of any handy tips or other information for the presenter.
For example:
- Participants may need to download the TwentySixteen theme before beginning
- What to do if there’s no projector or internet available
- What to do if a participant doesn’t have the necessary set up
- How to handle different opinions about the topic
Lesson Outline
- First do this
- Then move on to this
- Finish with this
The plan for the lesson. Outline form works well.
For example:
- Talk about what a theme is
- Demonstrate how to install and activate a theme
- Practice exercises to have participants find and install a theme on their own site
Exercises
What someone will DO with what they learn in each lesson; most lessons have at least one related exercise.
Exercise name
These help students see the effects of theme.json on their own installation of WordPress, to see the power of how things change.
Appearance Tools:
- Using the blank theme, navigate to your site editor's global styles. Take note of what options are available.
- Use your text editor to open the blank theme's theme.json - using schema, open the quotes by typing " and selecting "appearance tools". Set them to true, double-check your theme.json for errors, save, and refresh your site editor. Navigate again to your global styles and answer the first question under the "assessment" section.
Assessment
These assessments will be autograded on Learn.WordPress.org.
There should be one assessment item (or more) for each objective listed above. Each assessment item should support an objective; there should be none that don't.
**1. Which option appears immediately in 'global styles' when you set the appearanceTools to true in your site editor?"
**Double-check this, this whole section needs to be edited -- **
A. Color
B. Typography
C. Layout
D. Headings
Answer: C. Correct answer
**2. A question about what happens under a certain section when you add colors
**3. A question about what happens under another section when you add layout settings
Additional Resources
- To learn more advanced material about theme.json, please visit the WordPress developer handbook here: https://developer.wordpress.org/themes/advanced-topics/theme-json/
Example Lesson [See Script Below]
An example of how the lesson plan can be implemented. Written in script form as one possible way an presenter might use this lesson plan at an event, with screenshots and instructions if necessary.
Section Heading for Example Lesson
You will likely need to break the Example Lesson down into multiple sections.
Lesson Wrap Up
Follow with the Exercises and Assessment outlined above.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status