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

Commit

Permalink
Removed header and footer from checkout template. (#9378)
Browse files Browse the repository at this point in the history
* Removed header and footer from checkout template.

* Removed header and footer from checkout template migration
  • Loading branch information
wavvves authored and mikejolley committed Jun 28, 2023
1 parent 4afd63d commit f21a58d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
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"} /-->

0 comments on commit f21a58d

Please sign in to comment.