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

Enqueuing CSS and JavaScript #2183

Closed
Tracked by #1984
jonathanbossenger opened this issue Jan 27, 2024 · 9 comments
Closed
Tracked by #1984

Enqueuing CSS and JavaScript #2183

jonathanbossenger opened this issue Jan 27, 2024 · 9 comments
Assignees
Labels
[Content] Published Marks closed issues as content that was actually published.

Comments

@jonathanbossenger
Copy link
Collaborator

jonathanbossenger commented Jan 27, 2024

Details

  • Content type (Online Workshop, Lesson, Course, Tutorial, or Lesson Plan): Lesson
  • Content title: Enqueuing CSS and JavaScript
  • Topic description: Introduce the hooks and functions to enqueue CSS or JavaScript in a plugin.
  • Audience (User, Developer, Designer, Contributor, etc.): Developer
  • Experience Level (Beginner, Intermediate, Advanced, Any): Beginner

Learning Objectives

  • Explain why plugins can't just include their CSS or JavaScript in the usual way
  • Demonstrate how to enqueue custom CSS or JavaScript
  • Describe a method to selectively enqueue CSS or JavaScript on a per post type basis.

Related Resources and Other Notes

Automation Code

//lesson

Copy link
Contributor

github-actions bot commented Mar 14, 2024

Lesson Development 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

@jonathanbossenger
Copy link
Collaborator Author

Video for review: https://youtu.be/7bUHPRbcDTk

(I've been experiencing GitHub issues due to a local undersea cable outage, so I've uploaded this to YouTube as a private video)

@devmuhib009
Copy link
Contributor

Private video no one can see without access. I think making the video privacy to unlisted can be a good option for reviewers.

@jonathanbossenger
Copy link
Collaborator Author

Thanks @devmuhib009. I'm not used to sharing via YouTube.

I think the GitHub issues have been resolved, so here's the video via GitHub.

06.Enqueuing.CSS.or.JavaScript.mp4

@ironnysh
Copy link

ironnysh commented Mar 21, 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).

@jonathanbossenger
Copy link
Collaborator Author

Thanks @ironnysh

@jonathanbossenger
Copy link
Collaborator Author

@jonathanbossenger
Copy link
Collaborator Author

https://learn.wordpress.org/lesson/enqueuing-css-or-javascript/

@bsanevans bsanevans added the [Content] Published Marks closed issues as content that was actually published. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Content] Published Marks closed issues as content that was actually published.
Projects
Status: 📜 Published or Closed
Development

No branches or pull requests

4 participants