Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Settings and Styles #2090

Closed
9 tasks done
Tracked by #2958 ...
cynthianorman opened this issue Dec 6, 2023 · 8 comments
Closed
9 tasks done
Tracked by #2958 ...

Global Settings and Styles #2090

cynthianorman opened this issue Dec 6, 2023 · 8 comments
Assignees

Comments

@cynthianorman
Copy link
Contributor

cynthianorman commented Dec 6, 2023

Learning Objectives

Gives a basic overview of how the theme.json file works in themes with learning pathways to more advanced topics.

The learning objectives are to:

  1. Describe the purpose of a WordPress theme's theme.json file.
  2. Familiarize yourself with the JSON format and the structure of theme.json.
  3. Understand the hierarchy used for loading the setting and style configurations of a website.

Relevant Links

Theme Handbook: Global Settings & Styles
Block Editor Handbook: Global Settings & Styles
Block Editor Handbook: theme.json Version 2
https://learn.wordpress.org/tutorial/introduction-to-theme-json/
Theme.json lesson plan

Lesson creation checklist

  • Gather any relevant links to Support, Docs, or related material
  • Description and Objectives finalized
  • Lesson created and announced to the team for review
  • Lesson reviewed
  • Lesson video submitted and published to WPTV
  • Lesson created on Learn.WordPress.org
  • Lesson video published to YouTube
  • Lesson on Learn.WordPress.org updated with YouTube video
  • Lesson published to Learn.WordPress.org
@cynthianorman cynthianorman self-assigned this Dec 6, 2023
@github-project-automation github-project-automation bot moved this to 👋 Ready to Create in LearnWP Content - Development Dec 16, 2023
@kaitohm kaitohm moved this from 👋 Ready to Create to 🚧 Drafts in Progress in LearnWP Content - Development Dec 16, 2023
@cynthianorman
Copy link
Contributor Author

This Beginner Developer Learning Pathway Lesson is ready to be reviewed. Please follow the steps listed under Guidelines for reviewing content. Thank you for your contribution! ✨

https://youtu.be/DkAqKbylDl8 (unlisted)

@cynthianorman cynthianorman moved this from 🚧 Drafts in Progress to 🔎 Ready for Review in LearnWP Content - Development Feb 29, 2024
@ironnysh
Copy link

ironnysh commented Mar 4, 2024

Tutorial/Lessons Review Checklist

  • Learning outcomes/objectives are clear.
  • Technical concepts introduced in the content are accurate.
  • The speed of demonstrations are easy to follow.
  • The narration audio matches what is shown visually.
  • Spelling and grammar are correct.
  • Sound quality is consistent throughout the video.
  • Brand Usage Guidelines and Promotional Guidelines are being followed.
  • Media assets are all in the public domain (CC0).

@cynthianorman kudos on successfully balancing a friendly introduction with relevant technical deep-dive.

Two thoughts that came up when I watched the tutorial:

  • At 0:48, you mention that theme developers would have used the Customizer to build features for end users in classic themes. That's only partially true, and could confuse people about the use cases of the Customizer in block themes.

  • At 5:10, you mention the pattern slugs reference assets pulled from the public Pattern directory but as far as I know, it’s also where developers can reference the theme’s custom patterns.

@cynthianorman
Copy link
Contributor Author

cynthianorman commented Mar 4, 2024

ok @ironnysh you are making me rethink those 2 items for sure. I'm under the impression that as long as our patterns are placed within the patterns folder they are auto-registered. I'm wondering if mentioning the PHP registration method for patterns not found within the patterns folder is worth mentioning here or should we wait for the Intermediate LP lessons?

@ironnysh
Copy link

ironnysh commented Mar 6, 2024

Hi @cynthianorman, thanks for being open for having this mini discussion.
Patterns: I found this in the Theme Handbook of the official Developer resources:

The patterns property in theme.json lets you bundle patterns from the WordPress Pattern Directory with your theme.

Given that, it's probably better to stick with your original plan and pick this up in more advanced lessons.

Customizer: maybe adding a short "disclaimer" would do the job? Something like, "the Customizer has different uses, and some theme developers also used to..."

@cynthianorman
Copy link
Contributor Author

cynthianorman commented Mar 14, 2024

@jonathanbossenger I've uploaded this video to WordPress.tv and published it. We still need to add the transcript. Thank you!

@cynthianorman cynthianorman moved this from 🔎 Ready for Review to ✅ Preparing to Publish in LearnWP Content - Development Mar 14, 2024
@jonathanbossenger
Copy link
Collaborator

Video published to YouTube: https://youtu.be/FPCN2E5vEhc

When you have a moment, please add the Chapter Markers for the video as a comment in this issue.

@cynthianorman
Copy link
Contributor Author

@jonathanbossenger

YouTube Chapters

(0:09) Learning objectives
(0:32) Describe the purpose of a WordPress theme's theme.json file
(1:47) Familiarize yourself with the JSON format and the structure of theme.json
(5:17) Understand the hierarchy used for loading the setting and style configurations of a website
(7:24) WordPress developer resources

@jonathanbossenger
Copy link
Collaborator

Thanks, Chapters added to YT

@cynthianorman cynthianorman moved this from ✅ Preparing to Publish to 📜 Published or Closed in LearnWP Content - Development May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📜 Published or Closed
Development

No branches or pull requests

3 participants