{"id":15124095,"date":"2022-01-05T22:50:52","date_gmt":"2022-01-05T22:50:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=15124095"},"modified":"2024-09-23T08:32:19","modified_gmt":"2024-09-23T08:32:19","slug":"template-part-block","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/template-part-block\/","title":{"rendered":"Template Part block"},"content":{"rendered":"\n
Go back to the list of Blocks<\/strong><\/a><\/p>\n\n\n\n The Template Part block<\/em> is an advanced block introduced in WordPress 5.9 that can be used with a block theme or a theme that supports template editing<\/a>. They often come with your theme and are used to organize and display your site structure. You can only use them while creating and editing templates to manage blocks in areas repeated across the website. For context, this block is best used to create areas like your site header and site footer. When you change blocks inside a template part, the editor updates the blocks on every block template that includes the template part.<\/p>\n\n\n\n In order to add a Template Part block<\/em>, click on the add block button and select the Template Part block<\/em>. You can also type \u201c\/template part\u201d<\/em> and hit enter in a new paragraph block to add one quickly. In many cases, you’ll also see options to select types of Template Part blocks, like Header and Footer when searching for this block. You can search for the header or footer in the block inserter to insert the blocks or use the shortcuts “\/header”<\/em> and “\/footer”.<\/em><\/p>\n\n\n\n Detailed instructions on adding blocks can be found here<\/a>.<\/em><\/p>\n\n\n\n You can add templates when using the Template Editor<\/a> or Site Editor<\/a> to edit templates directly. After adding a template part, you can choose from existing parts or create a new template part:<\/p>\n\n\n\nAdding template parts<\/h2>\n\n\n\n