diff --git a/packages/block-library/src/template-part/edit/index.js b/packages/block-library/src/template-part/edit/index.js
index 35fa5f705e638..7a09e018ca314 100644
--- a/packages/block-library/src/template-part/edit/index.js
+++ b/packages/block-library/src/template-part/edit/index.js
@@ -153,19 +153,21 @@ export default function TemplatePartEdit( {
/>
) }
- { isEntityAvailable && hasReplacements && (
-
-
-
- setIsTemplatePartSelectionOpen( true )
- }
- >
- { __( 'Replace' ) }
-
-
-
- ) }
+ { isEntityAvailable &&
+ hasReplacements &&
+ ( area === 'header' || area === 'footer' ) && (
+
+
+
+ setIsTemplatePartSelectionOpen( true )
+ }
+ >
+ { __( 'Replace' ) }
+
+
+
+ ) }
{ isEntityAvailable && (