Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Removed header and footer from checkout template. #9378

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Templates/CheckoutTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public function default_template_content( $template_content, $template_file, $te

if ( $page && ! empty( $page->post_content ) ) {
$template_content = '
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:heading {"level":1} -->
Expand All @@ -90,7 +89,6 @@ public function default_template_content( $template_content, $template_file, $te
' . wp_kses_post( $page->post_content ) . '
</div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
';
}

Expand Down
2 changes: 0 additions & 2 deletions templates/templates/checkout.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:woocommerce/checkout -->
Expand Down Expand Up @@ -90,4 +89,3 @@
<!-- /wp:woocommerce/checkout -->
</div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer"} /-->