# Where do patterns and template parts fit in WordPress?

- Link: https://courtneyr.dev/2021/10/14/coding-optional-wordpress-blocks-part-one/
- Published: 2021-10-14T12:00:00-04:00
- Author: Courtney Robertson

## Table of contents

 * [🧱 Choose between patterns and template parts](https://courtneyr.dev/2021/10/14/coding-optional-wordpress-blocks-part-one/#section-%25f0%259f%25a7%25b1-choose-between-patterns-and-template-parts)
 * [🎙️ Recording notes](https://courtneyr.dev/2021/10/14/coding-optional-wordpress-blocks-part-one/#section-%25f0%259f%258e%2599%25ef%25b8%258f-recording-notes)
 * [▶️ Video timestamps](https://courtneyr.dev/2021/10/14/coding-optional-wordpress-blocks-part-one/#section-%25e2%2596%25b6%25ef%25b8%258f-video-timestamps)

A header needs to match across pages. A layout you copy into a new page can change
once it’s there. At the first GoDaddy Pro Coding Optional meetup, [Alex Standiford](https://profiles.wordpress.org/alexstandiford/)
showed where patterns and template parts fit. I helped the host prepare and sent
questions during the demo.

## 🧱 Choose between patterns and template parts

Use a [block pattern](https://wordpress.org/documentation/article/block-pattern/)
when you want editors to start from the same arrangement of blocks. Use a [template part](https://developer.wordpress.org/themes/templates/template-parts/)
when a header or footer belongs in several templates. The [Block Editor Handbook](https://developer.wordpress.org/block-editor/)
covers both tools. You can continue with the [second Coding Optional session](https://www.youtube.com/watch?v=tA56gybamKk)
when you’re ready to build a custom block.

On a client site, I’d share the footer with a template part. If the phone number
changes, you can fix it in one place. A pattern makes sense for the contact section
on a service page, where the copy can differ from page to page.

## 🎙️ Recording notes

GoDaddy Developer dates part one to October 14, 2021, in the video description. 
I contributed through the chat.

Captions and an interactive transcript are in the player controls (Transcript button).

[Watch Coding Optional – Part 1: Get started making Blocks quickly with plugins on YouTube](https://www.youtube.com/watch?v=x2QfUnsKJIY).

### ▶️ Video timestamps

 * [1:29 · Host credits](https://www.youtube.com/watch?v=x2QfUnsKJIY&t=89s)
 * [54:00 · A link shared in chat](https://www.youtube.com/watch?v=x2QfUnsKJIY&t=3240s)
 * [55:39 · My question about block based themes](https://www.youtube.com/watch?v=x2QfUnsKJIY&t=3339s)
