Make a Style.CSS file = This file, while often empty in block themes, is still required in block themes so that WordPress recognizes it as a child theme (and is required for all themes, parent and child alike).Instructor Note: These exercises build upon one another to make a simple child theme for a block theme. Finish by using the exercises below, walking students through each part of simple child theme creation.After you’ve clearly explained the benefits of child themes and pitfalls of editing a parent theme’s code directly, talk about the 3 or 4 required files in order for students to be able to do things with their theme.Let the students answer and fill in any gaps in knowledge and correct misconceptions. Next, ask the class if they know what a child theme is, how it works, or what they are used for.Second, explain the difference between block themes and classic themes.First, activate background knowledge: Ask students what a “theme” is and if they have any favorites.Having a sample site set up (complete with a text editor sandbox) for your learners can be exceptionally helpful in this lesson plan! Reach out in Slack to the #training team reps or faculty members for pre-developed, self-destructing sandboxes your students can download with a click of a button.A Local or Sandbox Installation of WordPress.Sample Screenshot – You can make one of a theme of your choosing, or use a placeholder. Twenty Twenty-Two Theme or a similar Block Theme.Will you have a locally or remotely hosted sandbox WordPress site to use during class?.Do you feel comfortable using a text editor to edit code?.Do you have at least basic, general knowledge of HTML, CSS and JSON? ( You don’t have to be able to code, just know what you’re looking at!).Are you familiar with installing and activating themes via the WordPress Dashboard?.Editing WordPress theme files with a text editor.Accessing the themes folder in a WordPress installation.Installing and activating WordPress themes.Setting up Local or Sandbox WordPress installations.Participants will get the most from this lesson if they have familiarity with: Create a basic, but fully functional block child theme from a block theme.Create initial files for a child theme and their essential requirements.Differentiate between parent & child themes and explain their benefits.ObjectivesĪfter completing this lesson, participants will be able to: This lesson will walk you through the process of setting up a basic child theme for a block theme. Creating a child theme from a block theme requires a few files to be fully functional. With the release of WordPress 5.9 in January 2022, a brand new theme development experience was created with new block themes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |