Make WordPress Core

Opened 2 years ago

Closed 17 months ago

Last modified 17 months ago

#55529 closed defect (bug) (duplicate)

Full site editing - Custom template issue

Reported by: nenad-obradovic's profile Nenad Obradovic Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.2
Component: Editor Keywords:
Focuses: template Cc:

Description

Hello,

I used the TwentyTwentyTwo theme and I created/used a plugin with the custom page template functionality

<?php
/*
Template Name: Custom Full Width
*/

get_header();
?>
	<main id="custom-page-content">
		<?php
		if ( have_posts() ) {
			while ( have_posts() ) :
				the_post();

				the_content();
			endwhile;
		}
		?>
	</main>
<?php
get_footer();

if you set that template for some page you will not be able to customize the footer and header template part area because the TwentyTwentyTwo theme doesn't have it and the default WordPress function locate_template will load/include for example wp-includes/theme-compat/footer.php file.

I think it will be great if you can improve locate_template or block theme templates functionality to load/include the default footer template part from the block theme instead of wp-includes/theme-compat/footer.php

Best regards,
Nenad Obradovic

Change History (2)

#1 @manfcarlo
17 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #55023.

#2 @desrosj
17 months ago

  • Component changed from Themes to Editor
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.