Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Introduction to Building Block Themes Withou...

Avatar for Sarah Norris Sarah Norris
September 13, 2023

An Introduction to Building Block Themes Without Leaving the Editor

Avatar for Sarah Norris

Sarah Norris

September 13, 2023

Other Decks in Technology

Transcript

  1. A block theme is a theme with templates entirely composed

    of blocks so that in addition to the post content of the different post types, the block editor can also be used to edit all areas of the site: headers, footers, sidebars, etc. Block Theme Handbook https://developer.wordpress.org/block-editor/how-to-guides/themes/block-theme-overvie w/#what-is-a-block-theme
  2. Advantages of Block Themes ★ Great web performance ★ Very

    flexible ★ Great preview functionality ★ Allow for cross-discipline collaboration ★ Utilise the latest Core functionality ★ They’re atomic
  3. 1. Style Book ★ Great way to view global styles

    ★ Easily compare style variations ★ Good for testing many different blocks
  4. 2. Pattern Management and Template Parts ★ Full premade layouts

    ★ Separate sections ★ Use community patterns from the Pattern Directory ★ Enable PHP code ★ Great for small reusable snippets
  5. Resources • WordPress Playground (with Twenty Twenty-Three and Create Block

    Theme) • Block Theme Handbook on WordPress.org • Block Theme Tools & Resources on WordPress.org • Pattern Directory on WordPress.org • Learn WordPress: Develop Your First Low-Code Block Theme by Sarah Snow • Learn WordPress: Developer’s Guide to Block Themes by Jonathan Bossenger • Full site editing for theme developers by Carolina Nymark • Create Block Theme GitHub repo and .org directory page • Pootlepress’ guide to block themes • Text & Video chats - #themereview, Hallway Hangouts • Live coding sessions - Ryan Welcher, Jonathan Bossenger